web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Why the model-driven a...
Power Apps
Answered

Why the model-driven apps is unmanageable by Powershell or Power Automate actions?

(0) ShareShare
ReportReport
Posted on by

I found that there is less support on model-driven apps... They are not captured with get-adminpowerapp cmdlet, they are not captured with "Get Apps as Admin" Power Automate action, ...

 

If anyone can advise?

I have the same question (0)
  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @patrickpoon02,

     

    This is probably because Canvas Apps and Model-Driven Apps are different, historically and technically.

    You can still get a list of Model-Driven Apps from an environment, using the Dataverse connector.

    Model-Driven Apps are stored in the "appmodules" table. Microsoft is using this in the Center of Excellence "Admin | Sync Template v3 (Model Driven Apps)" flow:

    joe_hannes_col_0-1630501174274.png

     

  • patrickpoon02 Profile Picture
    on at

    Yes I know about CoE and dataverse connector thing. However there is no PowerShell command to get the details and probably the app run detail, while still allow everyone to create such kind of apps (at least in default environment) is a nightmare to the Admins......

     

    If we can expect only privileged user can create model-driven apps to perform something like Power BI, that makes sense and we don't need to worry a normal user will blindly create bunch of model-driven apps for testing.

  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @patrickpoon02,

     

    I can understand your concern.

    You can of course govern resource creation more granularly in non-default environments, but I'm not sure if this helps in your case.

    Still, using the Dataverse connector mentioned earlier, you can at least manage apps that have been created in your default environment. The default environment is a "playground" by design, so every user has the Environment Maker role by design.

    Have you tried removing the privilege for creating model-driven apps from the Environment Maker role in the default environment? I just tested this, and it seems to prevent users from creating model-driven apps.

  • patrickpoon02 Profile Picture
    on at

    Sorfy may I know how to prevent the environment maker to create model-driven apps?

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @patrickpoon02 ,

     

    Sure. You could modify your maker role.

    vxiaochenmsft_0-1631157364057.png

     

     

    Best Regards,

    Wearsky

  • patrickpoon02 Profile Picture
    on at

    Hi @v-xiaochen-msft ,

     

    Thanks so much! Can this change applies to the default environment, that every licensed user will become Environment Maker automatically? We hope there is some control on default environment actually.

     

    Best Regards,

    Patrick

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @patrickpoon02 ,

     

    At my knowledge, you cannot change the permissions of users in the default environment .

     

    Best Regards,

    Wearsky

  • patrickpoon02 Profile Picture
    on at

    Then we are still headache of unknown of any model-driven app created for whatever reason, in the default environment, by any user.....

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @patrickpoon02 ,

     

    So I think , you could use another environment instead of the default environment.

    Because you cannot restrict users' behavior in the default environment.

     

    Best Regards,

    Wearsky

     

  • patrickpoon02 Profile Picture
    on at

    Hi, the actual problem is, we cannot restrict any user from creating in default environment but we want to. We cannot just simply declare the default environment is a place for fun and allow unlimited (yet it is limited) creation of model-driven apps or allow anything happens - create any apps you want...we as admin need to know their existence and ask the creator to do the compliance thing. Without powershell or Power Automate action support this cannot happens.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 462

#2
WarrenBelz Profile Picture

WarrenBelz 425 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard