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

Check if PowerApps user can access a particular SharePoint list item

(0) ShareShare
ReportReport
Posted on by

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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard