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

Restrict Dynamic RLS for some users?

I can use dynamic RLS ( USERPRINCIPALNAME()), if I have all the details of the email id's that I want to restrict, but for example if i have some users which do not have there emails present in the dataset, and i want to restrict them to a static role, such as if they login they should see specific amount of information can I do that?

 

How can I give full access to some users over dynamic RLS?

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@Anmolgan 

1. You could create a  new role for the static roles you want the specific users to see, then assign their account to the new role instead of the dynamic role filtered using USERPRINCIPALNAME(). 

 

2. To give the full access to someone over RLS, you could change the user's workspace role or give the user edit permission to the dataset. Because RLS only restricts users who can only view the reports. See: https://docs.microsoft.com/en-us/power-bi/service-new-workspaces#roles-in-the-new-workspaces

 

Best regards

Paul Zheng

View solution in original post

5 REPLIES 5
V-pazhen-msft
Community Support
Community Support

@Anmolgan 

1. You could create a  new role for the static roles you want the specific users to see, then assign their account to the new role instead of the dynamic role filtered using USERPRINCIPALNAME(). 

 

2. To give the full access to someone over RLS, you could change the user's workspace role or give the user edit permission to the dataset. Because RLS only restricts users who can only view the reports. See: https://docs.microsoft.com/en-us/power-bi/service-new-workspaces#roles-in-the-new-workspaces

 

Best regards

Paul Zheng

@V-pazhen-msft So I give the users edit permission on my workspace they can view the full content? regardless of the Dynamic RLS?

@Anmolgan 

 

Yes, we have made tests on that and you can also find it here:

scroll down to Using RLS with workspaces in Power BI:  https://docs.microsoft.com/en-us/power-bi/service-admin-rls

 

Paul Zheng

@V-pazhen-msft  This says "If you have configured the workspace so that members have edit permissions, the RLS roles will not be applied to them. Users will be able to see all of the data."

 

So if I already configure the workspace as edit permissions, then dynamic RLS will never be applied?

 

Is that correct?

@Anmolgan 

Yes, it is right. Just remember RLS will not applied if any user has edit permission,  they can see everything on the report. 

 

Paul

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.