cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ThePowerFox
Frequent Visitor

Unable to remove security role associated with app

When sharing a model driven app all selected security roles are associated with the appropriate app.
It is not possible to uncheck a previous selected (=saved) security role in this dialog.
How can the association between the model driven app and the security role be removed?

2 ACCEPTED SOLUTIONS

Accepted Solutions
EricRegnier
Super User
Super User

Hi @ThePowerFox,
This should be feasible quite easily with the Classic (aka legacy) interface. Try this:

  1. Navigate to your environment and append to the URL "main.aspx?forceClassic=1" (e.g. https://ericdxc.crm6.dynamics.com/main.aspx?forceClassic=1)
  2. Go to Settings --> My Apps
  3. Click on the ellipsis on the middle right of your app
    2020-04-07_20-50-31.png
  4. A right pane will open, expand Roles and you can uncheck the unwanted security roles (don't forget to save and close!)
    2020-04-07_20-52-05.png

     

    Hope this helps! 

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @ThePowerFox ,

Have you tried the new Sharing UI dialog within PowerApps to share your Model Driven app?

 

Based on the issue that you mentioned, I have made a test on my side, I suppose that you are trying the new Sharing UI dialog within PowerApps to share your Model Driven app as below:

4.JPG

is it right?

 

Actually, it is an known issue with the new sharing UI dialog -- if you assigned a Security Role to your Model-Driven app, and click "Share" button, the assigned Security Role could not be unchecked again within the new sharing UI dialog. These assigned Security Roles would be grey and could not be edited.

 

As an fixed solution, you could consider go to your Dynamics 365 CRM instance (PowerApps Environment, where your current Model-Driven app hosted in) through the following URL:

https://orgxxxxxxxx.crmx.dynamics.com/

then go to "Settings"-> "My Apps":

5.JPG

then find your Model-Driven app there, and click "Menu Options"-> "MANAGE ROLES" option:

6.JPG

then you could edit these assigned Security Roles for your Model-Driven app:

7.JPG

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
EricRegnier
Super User
Super User

Hi @ThePowerFox,
This should be feasible quite easily with the Classic (aka legacy) interface. Try this:

  1. Navigate to your environment and append to the URL "main.aspx?forceClassic=1" (e.g. https://ericdxc.crm6.dynamics.com/main.aspx?forceClassic=1)
  2. Go to Settings --> My Apps
  3. Click on the ellipsis on the middle right of your app
    2020-04-07_20-50-31.png
  4. A right pane will open, expand Roles and you can uncheck the unwanted security roles (don't forget to save and close!)
    2020-04-07_20-52-05.png

     

    Hope this helps! 

View solution in original post

EricRegnier
Super User
Super User

Hi @ThePowerFox,

This should be feasible with the Classic (aka legacy) interface. Try this:

  1. Go to your environment and append "main.aspx?forceClassic=1" after "dynamics.com"
    e.g. https://ericdxc.crm6.dynamics.com/main.aspx?forceClassic=1
  2. Go to Settings --> My Apps
  3. Click on the ellipsis in the middle right of your app
    2020-04-07_20-50-31.png
  4. A right pane will open, expand Roles and uncheck the unwanted security roles (don't forget to save and close!)
    2020-04-07_20-52-05.pngHope this helps!

v-xida-msft
Community Support
Community Support

Hi @ThePowerFox ,

Have you tried the new Sharing UI dialog within PowerApps to share your Model Driven app?

 

Based on the issue that you mentioned, I have made a test on my side, I suppose that you are trying the new Sharing UI dialog within PowerApps to share your Model Driven app as below:

4.JPG

is it right?

 

Actually, it is an known issue with the new sharing UI dialog -- if you assigned a Security Role to your Model-Driven app, and click "Share" button, the assigned Security Role could not be unchecked again within the new sharing UI dialog. These assigned Security Roles would be grey and could not be edited.

 

As an fixed solution, you could consider go to your Dynamics 365 CRM instance (PowerApps Environment, where your current Model-Driven app hosted in) through the following URL:

https://orgxxxxxxxx.crmx.dynamics.com/

then go to "Settings"-> "My Apps":

5.JPG

then find your Model-Driven app there, and click "Menu Options"-> "MANAGE ROLES" option:

6.JPG

then you could edit these assigned Security Roles for your Model-Driven app:

7.JPG

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Edited: Just noticed x-vida-msft hasn't logged on for more than a year

Would you happen to know how to do this with a canvas app in a solution?
It doesn't show up under Apps, and I can't find the app when looking through Settings -> Solutions -> <my solution>

This is for model-driven apps only, not canvas app. Removing a role for canvas apps is done by sharing/unsharing the app itself in the Maker portal (make.powerapps.com). Apps --> select your app --> click the ellipsis then Share. Hope this helps!

ROE-DK
Frequent Visitor

And of course I found the answer 10 min. after having given up 😕
When the app is shared, a new team is created under the organzation with the same name as the group the app is shared with:
From the Solution -> cogwheel -> Advanced Settings -> Settings -> Security -> Teams -> <business unit> -> Organization -> Teams
Click the relevant team and select Manage Roles

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,832)