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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Shresh
Frequent Visitor

RLS for Org Hierarchy with Multiple Managers

Current State

  • I currently have RLS implemented for the following scenario:
    Manager -> MD -> VP -> SVP -> C-Suite 
  • Each position has one or more work groups that report to them.
  • I have 3 types of tables:
    1. Emp Table that has emp details (emp num, mgr emp num, work email),
    2. a mapping table that maps emp num to Work Groups
    3. Detailed expenses divided by categories for each Workgroup i.e LTE has expense details for LTE Category for all workgroups and so on
      My model looks like:

Shresh_0-1690492730950.png

  • RLS implemented using path and path contains function:
    PATHCONTAINS(
    Emp_Hierarchy[Hierarchy],
    MAXX(
    FILTER(
    'Emp_Hierarchy',
    [work_email_address] = USERPRINCIPALNAME()
    ),
    Emp_Hierarchy[emp_nbr]
    )
    )
    Issue:

Shresh_4-1690494178262.png

I need emp 3 and 5 to see the same data that 6 can see even though they report to 6. Similarly, I need 8 to see the same data that 10 can see. 
How can i implement this?

1 REPLY 1
foodd
Super User
Super User

There is a great deal of thought out there on implementing RLS.  Would it not be simpler to leverage security groups, where a security group would always break a workgroup hierarchy tie you are running into?   Start with Soheil Bakhshi and then move over and read what Reza Rad has to say.   He did write an entire book on the topic.

  

Good Practice: Use Security Groups in Role Mapping Instead of User Accounts in Power BI Row Level Se...

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors