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 / How to assign user rol...
Power Apps
Answered

How to assign user role and manager in Model Driven Power apps for large number of users.

(0) ShareShare
ReportReport
Posted on by 37

Hi,

 

We are in process of implementing model driven powerapp. One of the requirement is to assign user roles and manager from one environment to another. 

 

How this can be achieved for large no of users and automated manner.

 

Thanks in advance for help.

Regards

Manish

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @manishsg ,

    Do you want to assign proper Security role from your Model-Driven app to large number of users?

    Do you want to assign Security Role of your Model-Driven app to these large number of users automatically when you move your app from one Environment to another?

     

    If you want to assign Security Role of your Model-Driven app to these large number of users automatically when you move your app from one Environment to another, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    The Security Role is scoped to individual Environment, which could not be migrated from one Environment to another one. If you move your app from one Environment to another one, you need to assign proper Security Role in that target Environment to these users.

     

    Actually, it is not necessary to assign Security Role to these users one by one, you could consider create a Office 365 Group or Security Group, then add your users into this Group. Then assign proper Security Role from your Target Environment to this Group, then all members of this group would have corresponding permission to access your Model-Driven app.

    More details about sharing Model-driven app to a group, please check the following article:

    https://docs.microsoft.com/en-us/power-platform/admin/manage-teams#about-group-teams

     

    Best regards,

  • manishsg Profile Picture
    37 on at

    Any future PowerAutomate Connector planned for this or we need to write our own custom code using web api to perform the mass association of role to users ?.

     

    Thanks

    Manish

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

    Hi @manishsg ,

    Currently, there is no connector supported in Power Automate to assign Security Role of Model-Driven app to end users.

     

    As an alternative solution, you could consider create a custom connector based on the the related web api in Power Automate or Power Apps to achieve your needs.

     

    More details about creating custom connector in Power Apps, please check the following article:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

     

    More details about Web API supported by CDS, please check the following article:

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/use-microsoft-dynamics-365-web-api?view=dynamics-ce-odata-9

     

    Best regards,

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 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard