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
OneWithQuestion
Post Prodigy
Post Prodigy

Object Level Security: Possible to make dynamic like RLS instead of manually adding users to Roles?

Is it possible to make Object Level Security dynamic so that instead of having to place each user into a role manually, it can use DAX to determine if a user should or should not see an object OR if the user should or should not be placed into a role?  Like how RLS is handled dynamically via DAX.

It appears that the only way to deny (or grant) access to columns or objects for a user is to set the permissions in the role and then manually add the user (or a group the user is in) to that role.

Meaning that if the user's permissions to view objects changes I would have to go back and update each model's role assignment or AD group.




2 ACCEPTED SOLUTIONS
v-easonf-msft
Community Support
Community Support

Hi, @OneWithQuestion 

As of now , powerbi doesn't support  dynamic object level Security.

Not to be confused with row-level security, OLS does not simply hide rows of data from end users. Instead, OLS hides the entire table or column\measure.

 

Dynamic Rls must need a user table which contains a field like "email-work" .Then you can use Table[column =]UserPrincipalName() to  filter related tables' row data  ( manage roles ->roles->table-> table filter expression)

22.png

The essence is that dax obtains the currently logged-in user to filter the table row data.

 

Dax can be used to filter tables' row data in  each table filter expression but it cannot be used to filter the tables\Table columns and measures in the model.  So it is hard to make Object Level Security dynamic data filtered by  current email address )

 

Best Regards,
Community Support Team _ Eason
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

OneWithQuestion
Post Prodigy
Post Prodigy

Microsoft says that at present there are no plans to make Object Level Security dynamic.

View solution in original post

3 REPLIES 3
OneWithQuestion
Post Prodigy
Post Prodigy

Microsoft says that at present there are no plans to make Object Level Security dynamic.

v-easonf-msft
Community Support
Community Support

Hi, @OneWithQuestion 

Could you please tell me whether your problem has been solved?

For now, there is no content of description in the thread. If you still need help, please share more details to us.

Best Regards,
Community Support Team _ Eason

v-easonf-msft
Community Support
Community Support

Hi, @OneWithQuestion 

As of now , powerbi doesn't support  dynamic object level Security.

Not to be confused with row-level security, OLS does not simply hide rows of data from end users. Instead, OLS hides the entire table or column\measure.

 

Dynamic Rls must need a user table which contains a field like "email-work" .Then you can use Table[column =]UserPrincipalName() to  filter related tables' row data  ( manage roles ->roles->table-> table filter expression)

22.png

The essence is that dax obtains the currently logged-in user to filter the table row data.

 

Dax can be used to filter tables' row data in  each table filter expression but it cannot be used to filter the tables\Table columns and measures in the model.  So it is hard to make Object Level Security dynamic data filtered by  current email address )

 

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

 

 

 

 

 

Helpful resources

Announcements
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.