I want to block off parts of my powerapp using roles which I will manage in a sharepoint list.
In the list I have a People column named "Name" in which I search the contact card for those in the organisation.
The next column is a choice column named "Access Level" with these three options: Developer, Coordinator, Client.
On the app's OnStart I have the following code:
Set(isDev, !IsBlank(LookUp('User Access Levels', Name.Email = User().Email && 'Access Level'.Value="Developer")));
Set(isCoord, !IsBlank(LookUp('User Access Levels', Name.Email = User().Email && 'Access Level'.Value="Coordinator")));
Set(isClient, !IsBlank(LookUp('User Access Levels', Name.Email = User().Email && 'Access Level'.Value="Client")));
Then, on a text label I'm using as a test I have set the Visible parameter to be one of the three variables, e.g. isDev - but it won't return it even though my role on the sharepoint list is set to Developer.
I have tried all three variables as well as nesting the IsBlank in an IF Statement, but to no avail.
I also want to do it so that the Developers can see everything, while the Coordinators are limited to some things and Clients are even further limited in terms of visibility.
Thanks in advance.