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 / Managing permissions i...
Power Apps
Answered

Managing permissions in App via a SharePoint List as the source

(0) ShareShare
ReportReport
Posted on by 31

Dear All,

 

I've been using Power Apps for a while but the more my App grows in our business, the more permission management is becoming an issue.

 

There are areas in our App which I would like to restrict based on a list of permissions which unit administrators manage and I want to cross-match an SP list and the active user using Office365Users. I've created a SP list to manage these permissions, and I would build out a personnel management section on the App.

 

I believe I need to do a Lookup and User(), but I'm struggling piecing it all together! #HelpAppreciated

 

As an example, I have created a simple table below and also provided some attachments above. 

Area of App / ScreenPermission required
HomeGeneral Access
Training > Unit DashboardGeneral Access
My Training ReportsGeneral Access
Unit Training Records

Training Team

Unit Administrator

Global Training Records

Global Administrator

Quarterly Reports

Unit Administrator

Permission Example.png
Personnel Management SP List.png
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @jamesbbrown ,

    Run this at App OnStart

    Set(
     gblUser,
     LookUp(
     'Personnel Management',
     'MODNet Account' = User().FullName
     )
    )

    then the following will return either true or false

    gblUser.'General Access'
    gblUser.'Training Team'
    gblUser.'Global Admin'
    gblUser.'Unit Administrator'

     

    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.

    Visit my blog Practical Power Apps

  • jamesbbrown Profile Picture
    31 on at

    What a beautiful piece of code you've given me there!

    I've been scratching my bald head for many hours trying to get that to work! 

    Really appreciate it @WarrenBelz 

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @jamesbbrown ,

    I would suspect you have more follicles than me . . .

    Is this now solved?

  • jamesbbrown Profile Picture
    31 on at

    @WarrenBelz 90s baby with limited follicles. I was not blessed at all.

    Yes, now marked as solved. 

    Thanks again!

  • ZafarIqbal Profile Picture
    7 on at

    Hi @WarrenBelz I`v got the part with set gbluser. But struggling with the part where to set true or false.

     

    Set(gblUser;LookUp(PowerApps_AccessControl;epost = User().Email))

     


    not so versed in powerapps

    @jamesbbrown I am using Checkbox yes/no in SharePoint Online. Could that be the reasoun?

     

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    @ZafarIqbal ,

    You need the true/false columns in your PowerApps_AccessControl list

  • ZafarIqbal Profile Picture
    7 on at

    as mentioned to jamesbbrown abow i have the yes/no(radio button) colums in list?

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    @ZafarIqbal ,

    This is an old closed post - please create a new thread with more specific details of your issue.

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 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard