@kriggo15
For example, let's say you have a table like this is SQL called 'UserRoles'
| UserEmail |
Role |
| jsmith@yourcompany.com |
admin |
| twest@yourcompany.com |
manager |
| plane@yourcompany.com |
user |
Connect your app to the UserRoles datasource.
Then put this code in the OnStart property of your app. When the app starts it will redirect to the proper screen.
Switch(
LookUp(UserRoles, UserEmail=User().Email, Role),
"admin", Navigate(your_admin_screen),
"manager", Navigate(your_manager_screen),
"user", Navigate(your_user_screen)
)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."