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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Nichita_J
Frequent Visitor

RLS with Multiple Roles

Hello All,

 

 Can someone suggest the best way to resolve this issue.
I have a RLS created Role 1 on Table A using userprinciple name
Role 2 on Table B using Userprinciple name. 
This works fine individually. I plan to role 2 Power BI Reports One for each role. Eventually might add all reports to One Power BI App and secure through two different Audiences.
But i have few users who should be part of Role 1 & Role 2. When testing a user with both the roles the data is filtered incorrectly. How to resolve this? 

1 ACCEPTED SOLUTION

Consider using Dynamic RLS instead. That allows you to specify the securables per individual user.

View solution in original post

6 REPLIES 6
v-bmanikante
Community Support
Community Support

Hi @Nichita_J ,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

B Manikanteswara Reddy

v-bmanikante
Community Support
Community Support

Hi @Nichita_J ,

 

we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

Regards,
B Manikanteswara Reddy

v-bmanikante
Community Support
Community Support

Hi @Nichita_J ,

 

Thank you for reaching out to Microsoft Fabric Community forum.

@lbendlin Thank you for your quick response.

 

Instead of using two roles, create one combined RLS role with conditional logic like:

 

OR(
RELATED(UsersAdmin[UserPrincipalName]) = USERPRINCIPALNAME(),
PATHCONTAINS(ManagerData[SupervisorPath], USERPRINCIPALNAME())
)

 

You'll write this logic in a calculated column or as a DAX filter on a bridge/junction table if necessary. This will allow you to assign one unified role and let the logic handle who sees what.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!

Regards,
B Manikanteswara Reddy

 

Nichita_J
Frequent Visitor

Image (3).jpg
Sorry for incomplete information. I am curious to know how to handle security for users who should be part of both the roles. As of now i have 3 reports one for each role i want report one to filter by Supervisor path and report 2 to filter by ID

Consider using Dynamic RLS instead. That allows you to specify the securables per individual user.

lbendlin
Super User
Super User

Please be more specific. What does "incorrectly" mean?  What is your expected outcome?

 

Note that more permissive rules take precedent over more restrictive rules.

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.