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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
astano05
Helper III
Helper III

Dynamic RLS Only Works Properly in Desktop

I have a salesman table (name, ID, email) connected to a customer assignment table (customer ID, name, assigned salesperson) connected to a customer table (customer ID, region, etc.). I set up dynamic RLS as Email=UserPrincipalName() on the salesman table.

 

When I test the role in desktop (Security --> View As --> Other User = sales rep email address; Sales Rep role checked) it works properly, but when I have the same user I tested with test in PBI Service on his end, he sees additional values outside his territory. What could be causing the disconnect between service and desktop?

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi,  @astano05 

For RLS to work, a user needs to have read only permission in the workspace.Workspace members assigned AdminMember, or Contributor have edit permission for the dataset.They can see everything by default. So RLS doesn’t apply to them. 

 

If user can sees additional values outside his territory , please make sure the user can only view the report and have no permission to edit the report.

 

https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls#using-rls-with-workspaces-in-power... 

 

Best Regards,
Community Support Team _ Eason

View solution in original post

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi, @astano05 

Could you please tell me whether your problem has been solved?For now, there is no content of description in the thread. If you still need help, please share more details to us.

Best Regards,
Community Support Team _ Eason

 

v-easonf-msft
Community Support
Community Support

Hi,  @astano05 

For RLS to work, a user needs to have read only permission in the workspace.Workspace members assigned AdminMember, or Contributor have edit permission for the dataset.They can see everything by default. So RLS doesn’t apply to them. 

 

If user can sees additional values outside his territory , please make sure the user can only view the report and have no permission to edit the report.

 

https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls#using-rls-with-workspaces-in-power... 

 

Best Regards,
Community Support Team _ Eason

Gabriel_Walkman
Continued Contributor
Continued Contributor

Did you assign the role to the person or group holding the person in dataset settings?

 

Is the sales rep invited to your tenant? If so, the UserPrincipalName() might return a funky format:

So basically, I've determined there are 3 different e-mail formats that get return: 1) regular, 2) live.com# prefix, and 3) abc_workmail.com#EXT#(at)onmail.mail.com

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors