Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Answered

System Customizer Security role concern and solutions

(0) ShareShare
ReportReport
Posted on by 175

After researching the error "Publishing all customizations failed."  when a user tried to click the "Publish" option when exporting their solution, I found that giving them "System Customizer" role resolved it.. 

The issue is, that security role is too powerful for regular users.
I have a test account that I gave that security role to and found that not only could it not publish solutions without the errors. But it could also edit existing solutions in the environment and make changes to unmanaged items.

 

Any ideas how I could give regular users rights to click the "Publish" option when exporting their solutions without generating the error, while also preventing them from editing existing solutions?

Categories:
  • syarraguntla Profile Picture
    2 on at
    Re: System Customizer Security role concern and solutions

    I got this resolved by applying both "Custom Security role"(Copy of environment maker) and "Environment Maker" roles.
    Below are the changes made in custom security role to fulfill my requirements like:
    1. Publish Solution before exporting.
    2. Creation of dataverse tables (Column, Relationships, Views), Choice columns.
    3. Export and import managed or unmanaged Solution (without dataverse tables).
    4. Export and import managed Solution with dataverse tables.
    5. One user in the same environment can't be able to export other users Solution.
    I am working on to export unmanaged solution with dataverse tables, any suggestions please?
    Note: FYI i made all the changes on Production type environments.

     

    syarraguntla_0-1692319240105.png

    syarraguntla_1-1692319259849.png

    syarraguntla_2-1692319296974.png

    syarraguntla_3-1692319309549.png
    Thank you,
    Suresh.

  • sureshyarragu Profile Picture
    4 on at
    Re: System Customizer Security role concern and solutions

    I made a copy of Environment Maker role and changed as per above. Now i am able to publish the solution before exporting, but suddenly now i am unable to create app outside and inside Solution, getting pop-up message like this.
    error.PNG

     







    Also not able to create flow outside solution, giving error "You are not permitted to make flows in this xxxx environment. please switch to the default environment, or to one of your own environments, where you have maker permissions".

  • ShaneMeisnerTH Profile Picture
    175 on at
    Re: System Customizer Security role concern and solutions

    Thanks @ChrisPiasecki  .. Right now our concern is allowing Citizen Developers the ability to export their Solution form the Power App interface and importing it into the correct environment, without being able to edit solutions they didn't create.
    I started n July to help them cleanup their Power Platform environment as they have 400+ Apps, and 1500+ Flows all in the Default Environment.
    There are currently only 6 Premium Licensed users, with 4 of those being our team( 2 Admins and 2 Service Accounts). All the Citizen developers we've worked with either use SharePoint or SQL for data and we are not promoting Dataverse at this time due to the extra cost of licensing.
    If in the future we decide to start using Dataverse more, then we will have to revisit this "fix". But for now this will do the trick.

  • ChrisPiasecki Profile Picture
    6,389 Most Valuable Professional on at
    Re: System Customizer Security role concern and solutions

    Hi @ShaneMeisnerTH,

     

    Just be aware that it doesn't stop someone from modifying those components directly outside the solution in the maker portal (via the Dataverse > Tables tab), or simply adding the components to their own solution, modifying them, and exporting them. Preventing the users from modying the solution container of others and exporting solution is a moot point when those other workarounds exist.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • ShaneMeisnerTH Profile Picture
    175 on at
    Re: System Customizer Security role concern and solutions

    @jukka-niiranen and @ChrisPiasecki 
    Thanks for your help.
    I made a copy of the Existing Environment Maker Security role and made the changes Jukka mentioned.

    I then removed Environment Maker role from my test account and added the Customized role.

    My test user now was able to create a new Solution, add a App/Flow and during export I was able to publish with no errors!

     

    I tried to open other solutions in that environment that it didn't create and I get errors, like I did with just the Environment Maker role:

    ShaneMeisnerTH_0-1665430823655.png

    I'll to do some more testing, but for now it looks like what jukka posted works as we need.

    Last thing I wanted to do was manually export all solutions 18,000+ user might create.. and Also didn't want to create hundreds of different environments just to make sure people didn't edit solutions they shouldn't.

  • ChrisPiasecki Profile Picture
    6,389 Most Valuable Professional on at
    Re: System Customizer Security role concern and solutions

    Hi @ShaneMeisnerTH,

     

    The privilege lacking is write access to the Entity table, which is expected as I mentioned the Environment Maker doesn't have the privileges on those Dataverse metadata tables (table, view, field, relationship, etc.).

     

    Creating a custom security role won't help you here because the permission scope can only be set to organization or none for those tables, which means you can either modify ALL of the metadata types or none at all. They would be able to modify the metadata created by others, which is not the granular access you're looking for. When you publish, you're effectively making changes (write) on the different components in the solution visible to everyone. 

     

    Separate environments is the simplest way to prevent others from messing with other people's solutions, and is a common pattern.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • Verified answer
    jukka-niiranen Profile Picture
    351 on at
    Re: System Customizer Security role concern and solutions

    I tested this based on the error messages that "Publish All" gives when using Environment Maker role. In my simple demo environment with a very basic solution containing one custom table and a couple of apps, the write privileges that I had to add were these 4: entity, field, relationship, view.

    jukkaniiranen_0-1665423892779.png


    Will this work for everyone and everywhere? Not so sure. Obviously this isn't quite the way Microsoft has intended the security model to work. As Chris mentioned earlier, there isn't an ownership concept on the Dataverse metadata level - meaning it's all organization owned and not user owned.

  • ShaneMeisnerTH Profile Picture
    175 on at
    Re: System Customizer Security role concern and solutions

    The error they get is :

    Publishing all customizations failed. SecLib::CheckPrivilege failed. User: , PrivilegeName: prvWriteEntity, PrivilegeId: , Required Depth: Basic, BusinessUnitId: , MetadataCache Privileges Count: 4126, User Privileges Count: 1133

    We've tested just creating a flow in a new solution and exporting that Solution and get the same error when they click the "Publish" Icon:

    ShaneMeisnerTH_0-1665420691462.png

    As I mentioned, all results I found to resolve that error were to grant them "System Customizer" or "System Administrator" Security roles, both have way too much power for "Citizen Developers" ..

    This is why I think a Customized Security role would work..
    If I could just figure out what setting would allow them to Publish, without the ability to Edit existing Solutions that they didn't create.. 

  • ChrisPiasecki Profile Picture
    6,389 Most Valuable Professional on at
    Re: System Customizer Security role concern and solutions

    Hi @ShaneMeisnerTH,

     

    What is the exact error you are seeing? Note that Environment Maker will be able to modify their own apps, flows, connections, and gateways, and share these resources.

     

    Environment makers do not have privileges to create/modify Dataverse specific components such as tables, views, etc.

     

    Does your solution contain any Dataverse specific components like a table? If so, you'll need to remove those components from your solution, or you'll need the system Customizer role.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • ShaneMeisnerTH Profile Picture
    175 on at
    Re: System Customizer Security role concern and solutions

     @ChrisPiasecki  .. Thanks for replying.. Through testing we did find that those with "Environment maker" security role can only see and edit their own solutions and they can export and import into different environments with that same role.

    The issue is if, during exporting, they click the Publish button, it generates an error that they don't have the right permissions. 

    Trying to find the appropriate setting that we could create a Custom security role that would give all the rights of Environment Maker, and enough of the System customizer role to publish, without the ability to edit other Solutions.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics