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 / Who can share Model dr...
Power Apps
Unanswered

Who can share Model driven app with other user?

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have an app called "App1" that is shared with security role "SR1" 

 

Then, I have shared an app with "User1" by assigning "SR1"

 

However, when "User1" shares an app with other user by assigning "SR1", it throws following error:

 

Cannot return null for non-nullable field FailedRoleError.code.

 

While MS Doc says that to share an app, user need a permission assigned to that app, which is the case for User1 in this scenario, then why "User1" is unable to share an app with other user?

 

Who can share Model driven app with other user?

 

Thanks,

I have the same question (0)
  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @dave8, sharing model-driven with other users is done by assigning a security role to an app as it's stated in the link you gave. This means users don't need to manually share an app with another user. The app is automatically shared with every member of those roles and they will see and able access the model-driven app from the app selector menu:

    2020-08-04_21-26-53.png

    Hope this clarifies

     

  • Dave Wi Profile Picture
    on at

    Hi @EricRegnier 

     

    Thanks for your attention!

     

    Actually, this is not clear to me as my question was more related to who can share an app? let's say, Team A in the org has created an app, and they want to share an app with the Team A members, which is already done by CDS Team.

     

    Now, member of Team A want to share an app with another member of "Team B" in the org. Who will do that? App owner ONLY? or the user who is assigned with respective security role of the app? Or only those users who have "System Administrator" role? Can you please clarify this?

     

    Thanks,

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Only the users that have privileges to edit model-driven apps. By default yes, System Administrators and System Customizers will be able to and any other custom roles with the those privileges. 
    The app owner might not necessarily have the privileges to edit the app so they might not be able to assign a role (share).

    Note you can’t share an app with a Team, only roles. A trick is create a security role just for that specific app then assign that role to the user or team. More details on the tip: https://crmtipoftheday.com/1260/use-app-access-roles/

  • Dave Wi Profile Picture
    on at

    How can I identify the privileges to edit model-driven apps ? where it is defined/configured? How I make others to edit an app?

     

    Thank you!

     

    Regards,

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    All users with the following privileges under the Customization tab would be able to manage model-driven apps:

    • Create, Read, and Write privileges for the Model-Driven App entity
    • Read and Write privileges for the Customizations entity
    • Read privileges for the Solution entity

    Hope this helps...

  • Dave Wi Profile Picture
    on at

    Unfortunately with this permission, users were still unable to share an app with other user.

     

    I have also checked assigning "all" rights at org scope for "Security Roles" entity under "Business Management" - that also keep throwing the same error as follows:

    
    Cannot return null for non-nullable field FailedRoleError.code.
     
    I wonder which rights/scope of security role would allow user to share an app with other user, while not allow user to create an app.
     
    Thanks,
  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Would it be possible to share a few screenshots of what the user is trying to do when sharing the app and where the error message appears?

  • Dave Wi Profile Picture
    on at

    Sure, when user having rights to assign security role, is trying to share an app with other user "Bao Canton" by assigning a security role as indicated in the following screen, throws an error:

     

    shareanapp.png

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Make sure you pick a role at step 3. Are some roles appearing in the drop down list? Also, to isolate the issue, did you get the same error when a user with System Administrator role assigned tries to share the app?

  • Dave Wi Profile Picture
    on at

    Yeah, I can see the roles in the dropdown and I have definitely made sure that role is selected before I share, however after clicking on "Share" page loads again and throws error message and removes security role selection.

     

    "System Administrator" is able to share an app with obvious reason.

     

    Any other clue? Are you experiencing the same error?

     

    Thanks,

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard