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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

RLS based on distribution list and security view

Implementing RLS for the following scenario: 

I'm currently limiting project data based on a security table that has userprinciplename and project #. I join this to project table and create a role so that users only see projects that have access to. Something like this for the role: [upn] = upper(USERPRINCIPALNAME()). It works just fine BUT I also have a table that pulls names from a distribution list. If you're on this list, you should see all projects. So I need to figure out how to implement RLS to say that if you're in this distrubution list table, you see all projects. But if not, proceed with how I did it before where  [upn] = upper(USERPRINCIPALNAME()). Any ideas?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Marcel. Thanks for your feedback. I did get this to work but had to add a little more DAX code than just true/false but the true/false was incorporated into my solution so thanks.

View solution in original post

2 REPLIES 2
marcelsmaglhaes
Super User
Super User

Hey @Anonymous !

I think you can do something like this: Solved: RLS issue: how to enable some users to see all row... - Microsoft Power BI Community

If this post helps, please mark as solved. 

Kind Regards
Marcel


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



Anonymous
Not applicable

Hi Marcel. Thanks for your feedback. I did get this to work but had to add a little more DAX code than just true/false but the true/false was incorporated into my solution so thanks.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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