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
marama
Helper I
Helper I

RLS: Only users in a table allowed to see everything

I have a table with userprincipalnames of users allowed to see the report. Anyone not in the table is not allowed to see any data.

Is there a way to chedck for permission at RLS level WITHOUT having to create relationship for all the data in the data model.
I'd just like to check for TRUE or FALSE and restrict everything in case of FALSE.


The thing is, the permissions are very dynamic, and it's difficult to have a security group level restriction, so I'd like to have it at RLS level.

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @marama ,

 

Setting up a security group in active directory that contains all employees then assign that security group to the role is a good way. When you have personnel changes, you only need to modify the list in the security group.

Solved: Dynamic Row Level Security (RLS) for ALL employees - Microsoft Power BI Community

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I already have a security group Employees, and my report is shared with employees. But I want only specific exmployees (based on data) to really be able to see the data.
I did setup a crossjoin with trusted people and projects, so basically I hat do model it in, which makes the model a bit more complicated. But I was wondering if where was a more elegant solution witout relationships. Something like "if person not in table, then break2..

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.