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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
PavBid
Regular Visitor

Row Level Security

Row Level Security

Hello All,

Please provide suggestions on the following RLS question– we have been trying for a while – but not able to solve.

We have a User table and a Department table. 

User table has columns - User Id, User Name, User email, and Department Id.

The Department table has columns - Department Id, Department Name, and Department Manager.

The two tables are connected on Department Id. 

With RLS, I can limit department information by user –> In Manage roles - on user table – User email = userprincipalname()

Some users have ALL in the Department Id column rather than the Id of the department – which means they should be able to see information on all the departments. 

How do we code this in Row Level Security i.e., Manage Roles.  

Many Thanks!!

Pav

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@PavBid , refer how to handle all

Power BI- Row Level Security: Handle ALL, UserPrincipalName: https://youtu.be/KVLEnIUo4pc

 

Refer if needed

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

View solution in original post

PavBid
Regular Visitor

Excellent!!

Thanks very much!

View solution in original post

2 REPLIES 2
PavBid
Regular Visitor

Excellent!!

Thanks very much!

amitchandak
Super User
Super User

@PavBid , refer how to handle all

Power BI- Row Level Security: Handle ALL, UserPrincipalName: https://youtu.be/KVLEnIUo4pc

 

Refer if needed

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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