Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
d_vendramini
New Member

Using Active Directory logged user to filter data

Hello everyone, I have three tables:

- Sales (including a field called AgentID)

- ADUsers (picking up from the Active Directory Domain) where my agents are. There's a field called UserEmail.

- UserAgentID which I maintain: it has the AgentID and the UserEmail associated.

 

There's a relationship between the three of them. I would like to apply dinamically the AgentID filter on the Sales table depending on the AD user logged in PBI Service. How can I achieve this?

 

For example:

Sales Table

AgentIDValue
123$ 150
456$ 200
789$ 75

 

ADUsers

UserEmail
john.green@aaa.com
mary.white@aaa.com
tracy.brown@aaa.com

 

UserAgentID

UserEmailAgentID
john.green@aaa.com123
mary.white@aaa.com456
tracy.brown@aaa.com789


If john.green@aaa.com logs in, I would like PowerBI to apply the filter "AgentID = 123" automatically in order to show only $ 150.

 

Many thanks,

Damiano

1 REPLY 1
Anonymous
Not applicable

You need to use Row-level security (RLS) with Power BI. The conditions are set in Desktop mode and then permissions are given in PBI services (cloud). 

 

Quick and simple to set up. Take a look at the following information. Essentially, you will create locked filters depending on the user accessing the dashboard at the time. 

 

User A can only see Data with Filter A 

User B can only see Data with Filter B

etc.. 

 

https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls 

https://www.youtube.com/watch?v=9wN33rTaiB4 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.