Dear Community,
I know this probably has been discussed numerous times, but I am still struggling to fully grasp it.
And also I would like to know the most logical and simplist approach.
So please share with me your thoughts!
Here is my context:
I have built a standard three screens Canvas app with a dataverse table. I have two AAD users that belong to two different AAD security groups.
User - User Group
Admin - Admin Group
Either User and Admin would have different security roles from Power Platform.
I like to know the following two approaches:
1. Based on the logged in user to Power Apps, the app will present different screen
or
2. Based on the logged in user to Power Apps, the app will present the same screen but the Admin can see an extra button.
I think I should utilise the App.StartScreen property to retrieve a property about the user, set a variable base on this user's property.
Then, I can send user to a different screen at launch (Scenario 1), or show/hide the button (Scenario 2).
However, I don't know what's the best approach.
Ideally, if we could retrieve user's AAD group name or security role at the start up, that would make things very easy.
I don't think that's possible.
Any advice would be super appreciated!
Thanks all!