Introduction
In this blog, we will see how to create Model Driven Apps with Security Role.
Implementation Steps
1. Navigate to https://make.powerapps.com
2. Click Apps
3. Now click on New App and select Model Driven App
4. Then input the name for the Model Driven App and click create
5. Once done click Add Page and select the page which you want to display, for demo am selecting the Dataverse table and clicking Next.
6. Now select existing table and select the table and click Add
7. Once done, click Save and Publish
8. Once the App gets created now click Play it will open a Popup with the App which we have created.
9. Now click on Settings and select Advance Settings
10. Once the Page opens, select Settings and click Apps
11. You can see the App which you have created now select the three dots and select Manage Roles
12. Once selected it will open the Roles --> select the Roles and click Save
13. Once the Save is done.
The respective Model Driven App will load if the logged in user contains that specific Security Role that we have selected in Step 12.
That's it :)
Conclusion
This is how we need to use Security Role with Model Driven Apps, based on this blog if the user logged in then based on the Security Role the App will get Visible.