cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mandeepdhillon
New Member

One user in multiple roles causing row level security to stop applying

I will try my best to describe the issue I am having. I have several roles against several tables. When only one user is assigned to a single role, everything works fine, but soon as one user is assigned to multiple roles, row level security stops working. For example, I have the following roles, Director, Team Leader, User. If I add User A to both the Team Leader role and User role in the Power BI service, row level security stops to work. However, if I assign them to only one of those roles, it works as expected. I was expecting that whichever role provides the higher level of access would take precedence not that row level would stop working. Of course, the appropriate thing would be to only assign them to one role but access is being managed by AD groups and by 1st line support. My worry is that, if they accidentally assign the user to multiple roles, row level security stops working and the user sees sensitive data they should not be able to see. Is this a problem or am I doing something wrong? There is a reason why we are doing in the way shown in the screenshots below. The traditional hierarchy doesn't work for our business due to various reasons.

2 REPLIES 2
v-robertq-msft
Community Support
Community Support

Hi, @mandeepdhillon 

According to your description and sample picture, I think you want to assign Multiple Roles to one user using RLS in Power BI, I think you can follow these cases and documents to create the correct tables and Organizational Hierarchy to achieve this:

https://community.powerbi.com/t5/Desktop/Row-level-security-multiple-roles/m-p/866260

https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi

https://community.powerbi.com/t5/Desktop/power-bi-rls-implementation/m-p/358535#M161644

https://community.powerbi.com/t5/Desktop/Row-level-security-with-multiple-roles/m-p/304964

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mandeepdhillon
New Member

Some screenshots

PowerBIService.PNGPowerBIService2.PNGRelationships.PNG

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Solution Authors
Top Kudoed Authors