Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

RLS with org hierarchy

Hello 

 

I need to develop a dynamic security set up for the data model being built and needed some help. 
My model has a shipment table with managers responsible. These managers have superiors as SVP’s and their superiors as Presidents. Shipments data will have the Manager or SVP's tied to shipment lines. But will not have the President’s ID’s.

The ask is to have the report be viewed by only the Managers or superiors who are part of the hierarchy.

President P1 - Can view all the data under his line of business. There are 4 president's who can view all the data. 
SVP1 - SHould view details of shipments of all managers under his Group. 

Managers can view only the data they are tied to in the shipments. 

I was looking at the below link , but in my scenario i could have multiple Level 1's, so the path gets distorted. 

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

 

Attaching the sample data that i am working with. 

I have this hierarchy in a table -USers_hier.

Can RLS be applied if the user is not part of the shipments data?

 

https://drive.google.com/file/d/14GfMN15z7irifqC9WqibZbySpWD-vGkd/view?usp=sharing

 

5 Replies