To control access to data in a canvas app based on user roles and permissions, you can leverage Power Apps roles and Dataverse security roles.
Define User Roles in Canvas App: In Power Apps, you can define roles for your users. You might have roles like "Viewers" and "Editors." You can create these roles in the Power Platform admin center.
Use Security in Formulas: Utilize the roles in the formulas of your app controls. For example, you might have a button that triggers an edit action. In the OnSelect property of that button, you can use the User and Role functions to check the user's role and conditionally allow or block the action.
If(User().Roles["Editors"], Navigate(EditScreen, ScreenTransition.None), Notify("You don't have permission to edit.", NotificationType.Error))
This code checks if the user has the "Editors" role and navigates to the edit screen. If not, it shows an error notification.
Create Dataverse Security Roles: In the Dataverse, you can create security roles. For your scenario, create a "Super Admins" role.
Assign Roles to Users: Assign users to the appropriate roles in the Dataverse. Super admins should be assigned to the "Super Admins" security role.
Set Entity Permissions: Go to the Dataverse environment, select your table (entity), and set the entity permissions based on roles. In the entity settings, you can define who can read, write, create, or delete records.
For "Super Admins," give them full permissions. For other roles, restrict permissions as needed.
If my response helped resolving your issue, kindly click on "Accept as Solution." This helps others easily locate the solution and also marks the question as resolved. If you found the information beneficial for other reasons, please give it a Thumbs Up. Thank you!