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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
cmbarnes
Frequent Visitor

Using Active Directory Group to choose a view to query

Background: There are 3 distinct views of the data I am usin. Each analyst is able to access one of these views based on their Active Directory group. The views were created to ensure that analysts using the back-end data directly could only access what they are allowed to access. 

 

I have created 3 reports that are exactly the same, but each one reads from the view associated with what the end users are allowed to see. It was decided to do it this way so that the security model would be exactly the same between the views and the RLS would not need to be created twice. The reports are on Report Server now, but will be transitioning to Service soon.

 

Is it possible to create a parameter in the query that will look at the end-user's AD group and allow the report to access the correct view for the group?

1 REPLY 1
lbendlin
Super User
Super User

Only in Direct Query mode, not in import mode.

 

It's not really clear what problem you are trying to solve? You want to use RLS without calling it RLS?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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