Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
Solved! Go to Solution.
Hi, @astano05
For RLS to work, a user needs to have read only permission in the workspace.Workspace members assigned Admin, Member, 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.
Best Regards,
Community Support Team _ Eason
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
Hi, @astano05
For RLS to work, a user needs to have read only permission in the workspace.Workspace members assigned Admin, Member, 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.
Best Regards,
Community Support Team _ Eason
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 143 | |
| 123 | |
| 100 | |
| 80 | |
| 55 |