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 / Check if PowerApps use...
Power Apps
Answered

Check if PowerApps user can access a particular SharePoint list item

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

My PowerApps is able to take the ID of the list item in the url (e.g. &ReqID=99), and display the form filled with data from the list item.

 

However, there are custom permissions for each list item which have been set (e.g. a requestor can only view their own request), and if i open the app with a ReqID that I do not have access to, it will show a form in "New" mode.

 

I am trying to show a screen that says "Access Denied" instead of showing them the blank form, and I thought of navigating to access denied screen if user does not have permission for the list item.

 

Is it possible to get permissions or is some other method recommended? Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    I would suggest using the formula below on StartScreen:

     /*This formula checks if the param ReqID exists if not it will set it as 0 and navigate to the Home screen*/
     /*Then it will check if the user has access to the item if so it will redirect the user to the form screen, if not it will redirect to the access denied*/
    
    With(
     {ReqID:IfError(Value(Param("ReqID")),0)},
     If(
     ReqID=0,
     HomeScreen, // If it exist, if not you can remove this condition
     If(
     IsBlank(LookUp(teste,ID=ReqID)),
     AccessDeniedScreen,
     FormScreen
     )
     )
    )

     

    I hope it helps 🙂

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, this works!

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 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard