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
mstefancik
Advocate II
Advocate II

Row Level security

Hello,

I used rls when it was not available in desktop. It worked as expected.

Today I recreated the same rules in the newest PBI desktop version and published to service myworkgroup space.

Now it does not work as expected.

 

I have simple security table to show categories based on logged on user.

table.PNG

 

i have created test roles with rules:

rules.PNG

Than I published it to PBI service.

Before adding users to roles. I test it via test role as in service.

rules service.PNG

 

I get the correct chart, showing only data for 2 categories: bikes and clothes

chart.PNG

Then I add my account to roles by choosing email address from the list.

user.PNG

 After adding account to rule, I open the report and expect the same result. But now i get the results for all categories.

chart2.PNG

Could anybody explain me why? What have i done wrong? As I have just replicated the same from service to desktop.

 

Why is it not working as expected now?

 

Thx

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Hmm, I was just testing this yesterday with a customer and it worked as expected. The main difference I see is that I added a different account to the role, not my account to the role. Perhaps as the owner/author of the report you have access to everything despite row-level security?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
ganeshsanap
New Member

If you publish your Power BI Desktop report to a workspace within the Power BI service, the roles will be applied to read-only members. You will need to indicate that members can only view Power BI content within the workspace settings.

 

Note: If you have configured the workspace so that members have edit permissions, the RLS roles will not be applied to them. Users will be able to see all of the data.


Read more at: Using RLS with workspaces in Power BI 

ankitpatira
Community Champion
Community Champion

@mstefancik @Greg_Deckler that is right. as owner of the report you get access to everything regardless of RLS. you need to add another user to the role and share. when shared user opens report it will be filtered based on condition.

That makes sense. I'll be sure to call that out in the docs.

Adam W. Saxton | Microsoft Employee | Business Intelligence
@GuyInACube | youtube.com/guyinacube
Greg_Deckler
Super User
Super User

Hmm, I was just testing this yesterday with a customer and it worked as expected. The main difference I see is that I added a different account to the role, not my account to the role. Perhaps as the owner/author of the report you have access to everything despite row-level security?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

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