
Announcements
Hello,
I am trying to restrict logged in user to view some screens or options.
I have a SharePoint list
Here you can see a column name UserPrincipalName.
Now I want to check if the logged-in user is present in UserPrincipalName and the IsGlobalAdmin value of the respective user is "Yes". Then the user can see the respective screens and options in powerapps.
I have tried this in the App OnStart function but it is not working.
why not try
If(
LookUp(
'User Table',
UserPrincipalName = User().Email
).IsGlobalAdmin = "Yes",
Set(varIsGlobalAdmin, true),
Set(varIsGlobalAdmin, false)
);