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!
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.
Was this reply helpful?YesNo
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.