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 / How to filter data vie...
Power Pages
Unanswered

How to filter data view dynamically based on user login

(0) ShareShare
ReportReport
Posted on by 10

Hi,

 

BACKGROUND:-

I have employee details table which contain all company employee details along with manager name, email id column in it. I have created view in dataverse and shown in power pages. Whenever manager logins, he or she should see only his department data.

 

PROBLEM:-

But whenever manager logins, he or she sees all employee data. How to solve this issue. Ideally manager can see row which is against his name.

 

Kindly advise.

 

Categories:
I have the same question (0)
  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    You will struggle to get this to work how you want unless you make your Employees Contact records and your Departments are Account records.

  • amolspawar Profile Picture
    10 on at

    @Fubar Thanks for quick revert. I will work on possible solution to assign records to account record. If you have any resources which can help, then please do share.

  • Lucas001 Profile Picture
    2,560 Super User 2026 Season 1 on at

    Hi @amolspawar,

     

    you can use liquid for that which should be quiet easy to implement.

    1. Fetch the table with your data
    2. get the position of the manager with your user.id and an if condition
    3. Use a filter on the FetchXML where you filter the column of your department or employee to the name of the loggedin user.

    Helpful resources:

    Introduction to Liquid

    Liquid Cheat Sheet 

    Microsoft Learn 

     



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

     

  • amolspawar Profile Picture
    10 on at

    @Lucas001 Thanks for response. I will explore this option more in detail.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 61

#2
Valantis Profile Picture

Valantis 46

#2
11manish Profile Picture

11manish 46

Last 30 days Overall leaderboard