Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Unanswered

Filter data by user when they access the app

(0) ShareShare
ReportReport
Posted on by 2

Hi, 

 

I am currently making an app and the main table (with several other tables connected to it) has the a user connected to each record. I want to filter all views by user. Only way I have figured out is to add the User().FulleName on every filter, counter and so on. 

Eg: 

CountIf(
    Companies,
    User = User().FullName
)
 
I wanted to see if there was any possibilities to limit the access to data based on the user when they open the app, so I don't have to duplicate the same line of code everywhere to avoid any data being shown to the wrong user? 
The tables I am using is stored in dataverse is that maskes any difference from other data sources. 
Categories:
  • fm_skeller Profile Picture
    277 Super User 2025 Season 1 on at
    Re: Filter data by user when they access the app

    It appears as though this is not a Power Pages related question - but a question regarding Canvas apps?
    On topic - you want to filter data based on the user - is there a particular reason for not using the security model to restrict access for users? 

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >