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 Pages / Filter data by user wh...
Power Pages
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:
I have the same question (0)
  • fm_skeller Profile Picture
    277 Moderator on at

    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

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard