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 / 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
    831 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
    831 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard