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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Security roles for tea...
Power Apps
Unanswered

Security roles for teams and in the deployments

(0) ShareShare
ReportReport
Posted on by 292 Moderator

Hello Everyone,

 

I have a question regarding the teams I’ve created in Dataverse. I’ve associated these teams with an AD group and assigned them a security role.

 

However, I’m uncertain about the deployment process. Will these teams be automatically transferred to another environment during deployment? If not, how does this process work? Any guidance would be appreciated.

 

@Jmanriquerios 

 

Thank you.

I have the same question (0)
  • Jonathan Manrique Profile Picture
    2,687 on at

    Hi @Muzammil_069506 

     

    On the one hand you have the Azure AD security roles and on the other the Dataverse security roles. To run the applications you need to configure the Dataverse security roles, by default there are already a series of security roles associated with the environment in which you are worked.

     

    You can configure new security roles and transport these roles through a solution.

     

    Now, each environment is independent in terms of the users who can access it, since you have configured security groups in Azure AD, and you can use different groups in each one, this is simply giving you access to the environment but not to the application.

     

    To access the application you must associate a dataverse security role to the user. You can do this individually or through teams, but it depends on the security model you establish in your application.

    https://learn.microsoft.com/es-es/power-platform/admin/wp-security

     

  • Verified answer
    Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @Muzammil_069506 Security Role definitions are solution-aware and, therefore, you can include them into your solutions and deploy as normal across environments.

     

    Team definitions, and the Security Roles associated to those Teams, are not solution-aware. So they do not move across environments with solution deployments.

     

    You can, however, treat Teams and the Security Roles assigned to those Teams as data in Dataverse. But you would need to build custom deployment logic to move this configuration between environments. This is because the Teams live at a Business Unit level and the Security Roles at replicated at each Business Unit in the organizational hierarchy. You, therefore, need to ensure that you assign the Business Unit specific variation of each Security Role to each Team. The Dataverse tables relevant to this area are businessunitteam and teamrole

  • Muzammil_069506 Profile Picture
    292 Moderator on at

    Thank you so much for replying I have accepted your answer as solution I'm already connected with you over the LinkedIn very detailed explanation building the custom logic what's effort there should we go out of box?@parvezghumra 

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @Muzammil_069506 Unfortunately there's no out of the box option for this. 

     

    Custom deployment logic will require .NET / PowerShell scripts. 

     

    Alternatively, check if there's anything that might help in XrmToolBox

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard