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 / Adding Child-Business-...
Power Apps
Answered

Adding Child-Business-Unit security roles to a solution

(0) ShareShare
ReportReport
Posted on by 93

Hi all,

 

I'm having some trouble adding security roles to a solution so I can export/import from dev to test/prod environments. The process seems like it should be straight forward (Add Existing > Security > Security Role), but this only seems to work for roles within the root business unit, and any roles belonging to child business units result in the following error:

IanJB_0-1692455733435.png

Any idea what the "root component Role" is referring to? Is there some other means of syncing security roles between dev/test/prod environments? The role creation process has already been quite tedious within Dev since roles cannot be copied between business units, so the thought of having to make them all from scratch in each environment sounds like a real drag. Hope I'm missing something simple! Thanks!

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

    @IanJB The error will be because you have defined your Security Role at a non-root level Business Unit and you're trying to add this Business Unit specific Security Role to your solution.

     

    When you create a Security Role, the platform automatically creates a copy of that Security Role for each of the Business Units that are a descendent of the Business Unit that you have associated your manually created Security Role with. These copied (inherited) Security Roles cannot be updated/modified and are also automatically kept in sync with their corresponding root level Business Unit Security Role). This behaviour also applies when the Security Role is created by way of installing a solution. This means you do not need to worry about adding your non-root level Business Unit Security Roles to the solution. The platform takes care of the copies for you, as long as you initially define your Security Role at the root level Business Unit.

  • IanJB Profile Picture
    93 on at

    Thanks! That makes sense, I did not realize that roles at the root level cascaded down to be usable at the child level. This actually saves a lot of work since my child-level roles were not necessarily unique across child-BUs; so simply creating the role once at the root level took the place of creating an identical role for every single child. Much appreciate the insight and stress reliever! 😅

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard