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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.