cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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.

New Member

Some screenshots

PowerBIService.PNGPowerBIService2.PNGRelationships.PNG

Helpful resources

Announcements
secondImage

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

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

Top Solution Authors
Top Kudoed Authors