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
Vick143
Frequent Visitor

Row Level Security With USERPRINCIPALNAME()

Hi Everyone,

We have one master dataset in which we use EmailAddress = USERPRINCIPALNAME() for our row level security. There are multiple reports using our master dataset and we have to create one more report using the master dataset but we can not have security on that report(All users should be able to see full data). Is there a way to create a switch where we can enable and disable security on the report? I tried following formula but it did not work. 

 

[EmailAddress] = IF(ISFILTERED(Security_tbl[Status]),"Global.User.com, USERPRINCIPALNAME())

 

Security_tbl is stand alone table and it has only one column 'Status' and one value "off", my idea was to bring it to filter on all pages on my report and filter it so users can see full data for this particuler report. Global.User.com is dummy email and I added it on ProfitCenterUser file and it is given full access. 

 

Thank you very much in advance for looking into it 

 

Vick143_2-1679063602033.png

 

Vick143_1-1679063243863.png

 

 

1 REPLY 1
lbendlin
Super User
Super User

The standard approach is to add a shadow copy of your fact tables to the data model, with sensitive information removed/aggregated away and RLS not applied.

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.