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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PetyrBaelish
Resolver III
Resolver III

Row Level Security - conflicting roles

I have a situation where there is directly conflicting roles in a Power BI report - the same user as part of both of these roles.

 

Take the following data:

RLS  Conflict.PNG

 

User 1 is part of the following 2 roles:

 

Role 1: [Department] = "IT"

Role 2: [Team] <> "Database"

 

Based on role 1, the user should only see rows 1-3 above, and according to role 2 the user should see rows 2-4.

 

When I tested as the user; they could see rows 1-3, i.e. Role 1. Role 2 is being ignored.

 

My purpose here is entirely to test conflicts in RLS; it appears that Role 1 has taken precedence over Role 2. Can anybody confirm if this is expected behaviour? If anything I would have expected the roles to merge to either show all data, or just show rows 2 & 3.

 

Is there any logic as to which role takes precedence: Role 1 was created first and is last alphabetically, is one of these factors what made it take precedence in this case?

 

I know grand rule is to create better roles that don't conflict - but for when users make mistakes and create conflicting roles, it would be useful to know how Power BI handles this to help identify conflicts easier.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@PetyrBaelish 

 

Based on my test, the user will have a consolidated view of both roles.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@PetyrBaelish 

 

Based on my test, the user will have a consolidated view of both roles.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.