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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
kamalbandam
Helper III
Helper III

RLS not working

Hi Everyone,

I have created two roles as Manager and Non Manager where I have assigned some of the people to Manager and Non Manager. After I have assigned people to the Power BI service and tested as a role using the email Id but it is not working. Even the Non manager is able to see all the data.

 

Can anyone please help me with this.

 

Thanks in Advance.

6 REPLIES 6
amitchandak
Super User
Super User

@kamalbandam , Hard to say, without looking at the configuration setting. Can you share more details.

 

Also, refer these two for any missing steps

https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi
https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak ,

Manager will see all the regions data but Non Manager will not see the Region "East" data and a person abc@gmail.com has been assigned to the Non Manager data in the power bi service. So, when I try to check using Test as role with abc@gmail.com , I am able to see the east data too.

Please find the below images:

kamalbandam_0-1599547616992.pngkamalbandam_1-1599547628909.png

 

@kamalbandam - Would need to see your RLS rules and such. Have you been following something like this:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Hierarchical-Row-Level-Security/m-p/...



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  I have been using static RLS not the dynamic

Hi @kamalbandam,

Perhaps you can add a mapping table to set username and their roles(manage/non manage) and apply a filter on this field. You can take a look at the following link about RLS with username if helps.

RLS with UserName() 

If you still confused about coding formula, please provide some dummy data and expected results to help us clarify your structure and test to coding formula.

How to Get Your Question Answered Quickly 

Regards,

Xiaxoin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@kamalbandam - Might want to rethink that. Generally if you are using USERPRINCIPAL name or email address to to the RLS, you want it to be dynamic.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.