web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Declare which sites an...
Power Apps
Unanswered

Declare which sites an admin user can access

(0) ShareShare
ReportReport
Posted on by

Hello

I'm new to the powerapps tool and i'm trying to figure out how to declare that  the user with "admin role"r can access to certain Screens.

The configuration is the next one:

 

PowerApp Helpdesk linked to a sharepoint list for ticket creation

PowerApp Helpdesk linked to another sharepoint list that has the users , passwords and roles

the colums of this list is as it follows:

 

 

User--------Password(hidden)--------Role(user or admin)-----person( real person in the organization)

 

 

The app has a login portal (OnStart) where is intended that the users can access by using the "user" and "password"  that is provided in t the sharepoint list.

 

So far the "normal users" can access and use the ticketing tool with no problem but im stucked on how should i declare that the Admin user has access to the other screens of the app where Admin can change the ticket settings as Completed, work in progress, etc

 

the question is:

 

How can i declare that the admin user has access to another screens on the app that normal users can't?

The solution i'm trying to establish it's to somehow link it to the sharepoint list which contains the users, password and  role.

 

Thanks in advance!

Categories:
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    HI @seez05 , If I understood your requirement then I believe you are looking permission trimming in your app based on roles. So, you can have below code:

    On the App , OnStart property you can have this logic

     

    Set(gblvar_CurrentUserRole, LookUp(ListName, ColumnName = User().FullName).Role)

    This variable gives you the role. Now, using this variable you can show or hide the components. Lets consider that you have button on screen which is just meant for Admin. This allow Admin to navigate to other screen. Then visible property of the button, you can have below code:

    If(gblvar_CurrentUserRole = "Admin", true, false)

    With this only Admin will be able to see this button and non admin wont see this button.

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard