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

Fabric Community Update - July 2025

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

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.