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

Community site session details

Session Id : tYHKzJoCE5Ge+Ov3xxzxB6
Power Apps - Building Power Apps
Unanswered

Show items that were created by the user in PowerApps

Like (0) ShareShare
ReportReport
Posted on 11 Oct 2022 14:50:24 by 519

Hello,

 

I have a Gallery created to my PowerApps.

When users come to the Form, they can see all the records submitted by any of the users.

 

Is there a way, were we can restrict users to see other records? Only see records submitted by the Requester.

I have a column named as Requester Name, so the Requestor should only see records that are created by them in the PowerApps Gallery.

 

Whereas the Owner of the App, should be able to see all the records, submitted by everyone.

 

Please advise. Thank you for your help in advance.

I have the same question (0)
  • Community Power Platform Member Profile Picture
    on 11 Oct 2022 at 15:17:13
    Re: Show items that were created by the user in PowerApps

    Hello,

     

    Yes, you can do that, you will need to use a filter in the Items property of the gallery, however you need to consider these topics:

    • Power Apps does not have a "roles" logic built-in, you need to implement that via the formulas. For instance, if you want an "Admin" kind of role that sees everything you need to implement. As a suggestion for doing this, try to implement a list/table in which you keep track of who is who (e.g. user1@example.com is and Admin, user2@example.com is a requestor, user3@example.com is an approver)
    • user global variables to save user relevan information, such as the role, id (e.g. email) that can help to define what this user can do based on the role (e.g. see some or all records)
      Set function in Power Apps - Power Platform | Microsoft Learn

     

    So after considering the above, I could suggest a formula for the gallery items like this:

    Switch(_UserVar.role,
     "Admin", requests //no need to filter 
     "Requestor", Filter(requests, RequestorEmail =_UserVar.email)
     "Approver", Filter(requests, ApproverEmail =_UserVar.email)
    )

     

    let me know if that helps

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 733 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 532 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete