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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Row Level Security with Roles to match multiple values

Hi,

 

I am trying to set up RLS. I've made an excel sheet with User email, and columns for each of different level of access that represent the managers and their levels. 

My issue is that the same user email may contain few managers that he has access to within one level of access and these values are on different rows, but same column. So lookup doesn't really work for me in this case (works only when a user has one access value).


For such users, with multiple access within the same level, I want to display all of data of those managers that he has access to. So far, this is being shown as different roles, but this is tedious, as there are more and more users getting access to different managers, requiring to create roles for each of them.

 

in an example, my issue is with user2 and user4.

Capture.PNG

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 


 For such users, with multiple access within the same level, I want to display all of data of those managers that he has access to. So far, this is being shown as different roles, but this is tedious, as there are more and more users getting access to different managers, requiring to create roles for each of them.


I'm confused on your description and requirement, could you please clarify why you need to create roles for different user account?

 

Regards,

Jimmy Tao

Anonymous
Not applicable

Certain analysts may have access to different levels of security. RLS is filtered based on Managers names and their level of seniority. Some analysts have access for few different managers that are on the same level of seniority.

 

The way we have data of employees and their managers with their seniority levels in database:Capture1.PNG

 

So for example, an analyst may want to access data of employees that are under John Doe and Robert California. I have to use L2 to match the names. I cannot use L1 because this will include more Employees than Expected, there might be more L2 managers under L1 that I do not want to give access to. 

 

So when I create an Excel sheet with access I create it in the way, so that it matches L2 in our data:

 

Capture2.PNG

 

And I use lookup:

 

[L2] = LOOKUPVALUE('Access'[L2], 'Access'[User Email], USERPRINCIPALNAME())

 

 

This works when an analyst have access to one manager of that seniority, but not when more.

Anonymous
Not applicable

up as I really need a help with this

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.