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

Row Level Security not working when tested by a user

I have set up RLS named "USA" based on the country [Country] = USA.

After i publish my dashboard I "view as" the role "USA" and it works fine. 

I assing the user Bob, who is not in my workspace, to this role. Then I "View as Bob" and I see only data from US, so ok.

 

Unfortunately, when I Bob accesses the app he is able to see all data instead of being limited to just USA.  Is there something I'm missing? 

 

Thanks, any help much appriciated.

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

Hi @federica ,

 

Please check whether the user has edit permission in the workspace. If the user has edit permission, RLS will be invalid.

You can set the user as the role of viewer and try to see if RLS is applied successfully.

https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-new-workspaces#roles-in-the-new-... 

 

Best Regards,
Liang
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

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @federica ,

 

Please check whether the user has edit permission in the workspace. If the user has edit permission, RLS will be invalid.

You can set the user as the role of viewer and try to see if RLS is applied successfully.

https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-new-workspaces#roles-in-the-new-... 

 

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

Hi @amitchandak , I am following exactly the instructions as per the link you shared: https://docs.microsoft.com/en-us/power-bi/service-admin-rls

Even the "view as person" works fine. I really can't find the trick here.

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.