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
heidibb
Helper IV
Helper IV

Row Level Security set-up

Hello!

We are building a report for our faculty to manage their courses. But also we would like the faculty team leads (who are also teaching faculty) to be able to view the courses they are teaching, as well as all the courses their assigned faculty are teaching as well.

 

Ideally, we would want the following to happen with RLS:

When our faculty log in, it will be set up to show only their own sections and corresponding data. 

Faculty RLS role will be this

[FacultyEmail] = Username() || [FacultyAccount] = Username()

 

When Team Leads log in, we want them to see their own sections as well as all sections being taught by their assigned faculty

Team Lead RLS role should be something like this I think 

[TeamLeadEmail] = Username() ||
[TeamLeadAccount] = UserName() ||
[FacultyEmail] = Username() ||
[FacultyAccount] = Username()

 

The faculty role is pretty straight forward and working ok. The Team Lead role is a little trickier.

My data is set up similar to this.

Capture.PNG

Imagine that Faculty 1 is also Team Lead 4. When that person logs in, we want them to be able to see sections 1111, 2666, 2777, 2888, 2999 and 3000.

 

Would you say I have my Team Lead role logic set up to achieve this? 

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @heidibb 

 

You might consider setting the hierarchy among Faculty and team leader, and Faculty outrank than the team leader, similar blog refer to:

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

Also, it similar to apply OR condition into 2 slicers, I believe you can check out below blog for more hints:

https://www.sqlbi.com/articles/using-or-conditions-between-slicers-in-dax/

 

 

Community Support Team _ Dina Ye
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

1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @heidibb 

 

You might consider setting the hierarchy among Faculty and team leader, and Faculty outrank than the team leader, similar blog refer to:

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

Also, it similar to apply OR condition into 2 slicers, I believe you can check out below blog for more hints:

https://www.sqlbi.com/articles/using-or-conditions-between-slicers-in-dax/

 

 

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

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.