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

Notifications

Announcements

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

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 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
    153,084 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
    153,084 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
    153,084 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard