Forum Discussion
Hierarchy RLS
Hello ,
I have a data model that is connected this way :
dm_user -> dm_ user_territory-> dm_territory -> ft_visit.
I want to create a RLS rule using the email from the dm_user to filter the territory.
The territory table has this hierarchy :
| Region | Area | territory | |
| a | email a | ||
| a | b | email b | |
| a | b | c | email c |
| a | d | e | email e |
so A can see all the levels, B can see Area and Territory, C can only see territory.
How can I set the RLS in the way that if I enter with Email A, I can see al the people ? and if I enter with Email B I can only see area and territory where B is the Area manager , and if I entere with email C I can only see territory with C?
Thank you in advance for the help.
Hello! I love using RADACAD's guidance for dyanmic RLS following a hirarchy: Dynamic Row Level Security with Organizational Hierarchy Power BI - RADACAD
2 Replies
- audreygerred
Super User
Hello! I love using RADACAD's guidance for dyanmic RLS following a hirarchy: Dynamic Row Level Security with Organizational Hierarchy Power BI - RADACAD
- v-ssriganesh
Community Support
Hi Anonymous,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to audreygerred for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.