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
CloudMonkey
Post Prodigy
Post Prodigy

Row level security at different levels

Hi,

 

I have data made up of lots of shops which feed into areas, which in turn feed into larger regions. As a test I've managed to set up three row level securities that map people to shops, areas and regions. But I don't understand how to elegantly control permissions for different jobs titles - e.g. all staff can be mapped to a branch number, but shop managers should only see their branch, area managers should only see branches in their area, and region managers should only see shops in their region. Please can you tell me how to create a single permission that elegantly handles all of this?

 

Thanks,

 

CM

 

 

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @CloudMonkey ,

Based on my test, you could refer to below links about RLS:

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

http://radacad.com/dynamic-row-level-security-with-manager-level-access-in-power-bi

 

Regards,

Daniel He

Community Support Team _ Daniel He
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

3 REPLIES 3
v-danhe-msft
Employee
Employee

Hi @CloudMonkey ,

Based on my test, you could refer to below links about RLS:

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

http://radacad.com/dynamic-row-level-security-with-manager-level-access-in-power-bi

 

Regards,

Daniel He

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

Thanks for the reponses.

 

We also have some floating employees that will need a mix of permissions. For example a consultant may need access to 4 areas in the same region (but not all areas in that region). Another consultant may need access to several areas (but not all areas in each region) spread accross different regions. Please can you tell me if/how this is possible in Power BI?

 

Many thanks,

 

CM

d_gosbell
Super User
Super User

The answer to this depends on what your data model looks like and how you map staff to branches.

 

If your Branch table has columns for BranchManager, AreaManager and RegionManager that contains the Username  you could simply create an RLS filter condition like the following:

= Branch[BranchManager] = USERNAME() || Branch[AreaManager] = USERNAME() || Branch[RegionManager] = USERNAME()

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.