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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

RLS

Hello, I have created Roles using USERNAMEPRINCIPAL() on my desktop, and each time I run test on PowerBI desktop (View As Role) its working.

 

However when I publish it to the workspace, It doesnt work ! the user still can see other values.

2 ACCEPTED SOLUTIONS

@Anonymous  - Just wanted to confirm whether you have added the users to the RLS role 🙂 Assuming, the user only has 'Viewer' access to the workspace.  

Lastly, are you using USERPRINCIPALNAME ()  or  USERPRINCIPAL() ?




View solution in original post

Anonymous
Not applicable

USERPRINCIPALNAME()

 

I managed to solve it, the users that I am granting roles to, are also Members of the Workspace so the permission of the workspace is superiour to the RLS role permission so they can check the data.

 

I removed them from workspace permission and it worked perfectly, Thanks a lot for your interference and sorry dont take me wrong 🙂 

View solution in original post

5 REPLIES 5
gauthamboppana
Solution Specialist
Solution Specialist

@Anonymous  - Have you added the users or AD groups to the RLS role in Power BI service?

Click on the dots in the dataset and go to security. Add the Users or AD groups to the role.

gauthamboppana_1-1659367054652.png

 

gauthamboppana_0-1659367026408.png

Did I answer your question? Mark my post as a solution! If not, please feel free to ask me.

Also, I would ❤ Kudos if my solution helped.  It is a token of appreciation!

Thank you very much !

Anonymous
Not applicable

Hello Thanks for your answers but thats extremly basic, ofcourse I have added them to the RLS on PowerBI service.

 

My issue is that although I added them, they can still see all the data, not only the data assigned to their role.

 

Thanks again 🙂 

@Anonymous  - Just wanted to confirm whether you have added the users to the RLS role 🙂 Assuming, the user only has 'Viewer' access to the workspace.  

Lastly, are you using USERPRINCIPALNAME ()  or  USERPRINCIPAL() ?




Anonymous
Not applicable

USERPRINCIPALNAME()

 

I managed to solve it, the users that I am granting roles to, are also Members of the Workspace so the permission of the workspace is superiour to the RLS role permission so they can check the data.

 

I removed them from workspace permission and it worked perfectly, Thanks a lot for your interference and sorry dont take me wrong 🙂 

@Anonymous  - No worries at all. Happy that you managed to resolve it 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.