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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ConnieMaldonado
Responsive Resident
Responsive Resident

RLS when User has permission rights on the published workspace

Hello - I have set up Row Level Security in a Power BI report based on an organization's hierarchy using the Path Statement as follows.

 

I created a path statement on the main employee table to set up the hierarchy.

Path = PATH('Employee Dim'[Employee_Number],'Employee Dim'[Primary Manager ID])
 

In the Modeling section, I created a User role and added a filter on the employee table:

 

ConnieMaldonado_0-1661784783158.png

 

In the service, I added User A to the User role.  

 

User A is an admin on the workspace where the report was published.

 

If I test using the "View as" role functionality in the PBIX, the view for User A is limited as expected. Also, when I test from the service using "Test as Role", the view is limited as expected.

 

However, and this is my question, when I share the report (direct access) with User A (who remember is also an admin on the workspace), User A sees everything and the view is not limited. Is that because User A is an admin on the workspace?

 

If yes, will this happen if User A is a Contributor or Viewer on the workspace?

 

Thanks!

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @ConnieMaldonado ,

 

For the admins they do not get the view limited in the workspace, they have full acces so no filtered is applied on the RLS options.

 

Has you can see in this link workspace members assigned Admin, Member, or Contributor have edit permission for the dataset and, therefore, RLS doesn’t apply to them.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi @ConnieMaldonado ,

 

For the admins they do not get the view limited in the workspace, they have full acces so no filtered is applied on the RLS options.

 

Has you can see in this link workspace members assigned Admin, Member, or Contributor have edit permission for the dataset and, therefore, RLS doesn’t apply to them.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thanks so much!  That answers the question.  I did find the following from the link you provided.  I didn't find the issue outlined to be true, as I have republished my report several times with no issues.  Do you know if this is an old issue?

ConnieMaldonado_1-1661950503703.png

Thanks!

Hi @ConnieMaldonado ,

 

The issue that is presented is a possibly one, can happen sometimes, and they are refering if that happens that you must publish from the service.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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