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 / Verify user's access t...
Power Apps
Answered

Verify user's access to SharePoint List and handle errors

(0) ShareShare
ReportReport
Posted on by 18

Hi. I have an application that is only intended to be used by one group of employees (but there are hundreds of such employees).

 

In practical terms, it didn't make sense to individually grant access to each of those employees, given the number, so I granted access to everybody in the organisation.

 

However, only the specific intended employees have access to the underlying data sources (SharePoint Lists).

 

Is there a smart way within Power Apps itself to validate whether the user has access to those underlying data sources and, if they don't, give them a warning and then force the application to close?

Categories:
I have the same question (0)
  • jamezm79 Profile Picture
    18 on at

    bump

  • rpersad Profile Picture
    776 on at

    Currently no. However if there is a specific department/unit or anything which links that group of employees you can use a LookUp function to check if they meet a criteria using their account.

  • Verified answer
    jamezm79 Profile Picture
    18 on at

    OK - thank you. I can't find a LookUp value that I could use for this.

     

    Actually, what might work is to use OnError and then check what the error is. Most of the time, I'd expect the result to be: FirstError.Message = "Error when trying to retrieve data from the network"

     

    So I might rely on that.

  • rpersad Profile Picture
    776 on at

    No problem, make sure to mark your response as the solution to close this thread.

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