cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
PBI-designer
Frequent Visitor

RLS causes that the users not in RLS group can't access the data

Hi, there,

 

I created an RLS group by precisely following the instructions https://learn.microsoft.com/en-us/power-bi/enterprise/service-admin-rls.

  • I have an existing report "REPORT A" and it has a user "USER X" and a group "GROUP Y" with "viewer" permission.
  • Create a role "ROLE B" in "REPORT A" in PowerBI Desktop
  • Set a DAX filter on a field of the table for this role
  • Publish it to the PowerBI service
  • Add an SG "RLS_SG" to the role "ROLE B" in the PowerBI service security tab
  • Add "USER Z" to SG "RLS_SG"

Then I find:

  • "USER Z" can only access the rows secured by "ROLE B" as expected
  • However, "USER X" and the users in "GROUP Y" can't access "REPORT A" due to an error "The report can't be viewed because the underlying dataset uses row-level security (RLS)"

What causes this error? The instruction https://learn.microsoft.com/en-us/power-bi/enterprise/service-admin-rls doesn't mention the existing users and groups added before RLS, and I assume the right design is keeping those viewers' access as it is. Am I wrong? How can I fix this issue?

 

Hao

1 ACCEPTED SOLUTION
Tutu_in_YYC
Resident Rockstar
Resident Rockstar

USER X and GROUP Y have to be assigned with an RLS Role. If these 2 are allowed to see all data in REPORT A, you still need to create an RLS role without any data filter in it and assign it to USER X and GROUP Y.

Basically, if a report has RLS, only those with assigned RLS roles can access it.

View solution in original post

2 REPLIES 2
Tutu_in_YYC
Resident Rockstar
Resident Rockstar

USER X and GROUP Y have to be assigned with an RLS Role. If these 2 are allowed to see all data in REPORT A, you still need to create an RLS role without any data filter in it and assign it to USER X and GROUP Y.

Basically, if a report has RLS, only those with assigned RLS roles can access it.

Thanks @Tutu_in_YYC ! I make it as an accepted solution.

 

It is so sad I can't see this important information on the PowerBI documentation, even the screenshots used in the document all have only one RLS role which may make the people misused it.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors