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 adding ...
Power Apps
Unanswered

Security Roles adding or deleting users from within Power Apps

(1) ShareShare
ReportReport
Posted on by 185
 
Hello,
 
I'm relatively new to Model Driven Apps, but I've built quite a few canvas apps.  In the past I've used active directory security groups paired with an access table (users with access) with Power Automate to manage access to my applications.  I'd like to explore using environment security roles for access.  I've created a security role within my solution, but my question is how can I use a custom page or canvas app to manage assignment or removal from security roles?  I know how to add people manually to the security role from the Power Platform admin center, but it isn't clear to me where those additions are stored and managed within the Dataverse tables or how to access them from an app.
 
My goal is to make it easy for the user/admin to manage access from within the model-driven app (not going to Power Platform admin center or Microsoft Azure/Entra to add/remove users).  
 
Below is a mockup of the basic approach to help visualize what I'm trying to do.
 
I can get the security roles by adding the corresponding table (Security Roles), but don't know how to see what users have been assigned to the security role or add/delete them from within the app.  Appreciate any insights that might be offered.  Thanks!
Categories:
I have the same question (0)
  • trstrean Profile Picture
    185 on at
    I was able to figure out how to do this, but does anyone know if it is possible to hide or restrict access to a custom page based on a security role?  For now, I've limited the ability of users to interact with the custom page's content by disabling based on presence in a security role, but I'd like to hide the Admin group and custom page entirely unless the user is in that admin security role.  

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