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 Pages / Filter the Power page ...
Power Pages
Answered

Filter the Power page list based on logged in user

(0) ShareShare
ReportReport
Posted on by 18
I have a use case to list the tickets assigned to a user in Power pages. I am using OOB list control and showing data from view.
I have a primary assignee column which looks up to contact table. I have used Portal Attribute filter condition option to show only  tickets assigned to the logged in user and this is working fine
Now I have a use case where I need a new column secondary assignee which again looks upto contact table.
So when a user logs in, he should see tickets where he is either a primary or secondary assignee. 
How do I achieve this? How to filter against multiple columns based on logged in user.
Categories:
I have the same question (0)
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,425 Most Valuable Professional on at
    Hi, instead of using the Filter option, you should look at Table Permissions to properly secure your data.
     
    You can create two permissions, one for each lookup, and this should grant the users to view the tickets if they are either the primary or secondary assignee.
  • Verified answer
    Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at
    How you may achieve it depends on other requirements:
    • If the user is only to see records from those 2 fields then create 2 Table Permissions (1 for each lookup relationship) as per Oliver's suggestion. This is also the most secure option.
    • If you have the case where the user needs to see other records also, then add filter criteria to the View definition in dataverse  - create an OR condition for the 2 Lookups and populate them with an existing Contact record (the system will replace the Contact in the Lookup in the view definition with the currently logged in portal user)
  • CU09120643-0 Profile Picture
    18 on at
    I have tried the option with table permissions and it did work. However I later realized that some of the assignees are also having admin privilege where they get to see all tickets in a different page. Due to this admin privilege is overriding the other permission.
     
    Fubar, could you please help with the second option you mentioned.
    I tried adding filter to view, but when I am selecting Assignee column(lookup to contact), in equal to condition, I am seeing a list of all my contacts. I am not able to figure out how to make this dynamic.
    Any help is appreciated
  • Suggested answer
    Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at
    You don't make it dynamic - in the view definition you just select any contact record (or create a new one specifically for this purpose) - the system will automatically replace it at run time with the currently logged in portal user's contact record (this is documented somewhere, but not always easy to find in the doco). 
    (before Microsoft bought the Portal, they used to provide their own contact record named Portal User and you would select that one - but Microsoft has stopped creating that Contact record by default)
  • CU09120643-0 Profile Picture
    18 on at
    Thanks Fubar for the help. It did resolve the issue

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#2
CN-06091549-0 Profile Picture

CN-06091549-0 18

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 17 Most Valuable Professional

Last 30 days Overall leaderboard