To define user roles in PowerApps, it is recommended to use M365 groups. Create a group for each role and manage the members and permissions in one place. To check if a user is a member of a group, you can implement the logic directly in the PowerApps app or in a Power Automate flow. In the app, you can list the members of a group using the Office365Groups connector and check if the user's email is among them. In a flow, you can get the user's groups and return them to the app. Another option is to check if the user has a specific role on the environment by looking up the roles in the Users table or the Teams they are a member of. Overall, using M365 groups and implementing the logic in PowerApps or Power Automate can help define and recognize user roles in PowerApps.
Login now to access my digest by 365.Training