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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
olF
Frequent Visitor

RLS in Power BI Desktop with Power BI service as data source

Hi all,

 

I have built a report and dataset with RLS setting. 

I want to share this dataset to colleagues so that they can connect to this dataset through Power BI Desktop to do some adhoc reporting by themselves. 

They can connect to the dataset through their PBI Desktop, but seems like the RLS is not working?

May I know if RLS can be applied to this situation? Or anything missed here?

 

Look forward to any comments. Thanks

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi @olF 

First, you should know that RLS only works for viewer users

Using RLS with workspaces in Power BI

If you publish your Power BI Desktop report to a workspace within the Power BI service, the roles will be applied to read-only members. You will need to indicate that members can only view Power BI content within the workspace settings.

 Warning

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.

 

https://docs.microsoft.com/en-us/power-bi/service-admin-rls#using-rls-with-workspaces-in-power-bi

 

Second, for your case, you could add users that only could view power bi content and then give them the permissions of this dataset to create the report.

https://docs.microsoft.com/en-us/power-bi/service-datasets-build-permissions

 

Regards,

Lin

Community Support Team _ Lin
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

4 REPLIES 4
olF
Frequent Visitor

Thanks @TomMartens Tom and  @v-lili6-msft Lin. Very clear now.

 

I used @v-lili6-msft suggestion to add users as "Viewer" and grant them "build" right. It works for newly added users.

 

But I found that, once I have granted "Contributor" or "Member" access to users before, if I change them to be "Viewer" now, they will still be able to read all data instead of restricted data that within RLS.

Don't know if it is something related to the setting of workspace or not.

hi @olF 


@olF wrote:

Thanks @TomMartens Tom and  @v-lili6-msft Lin. Very clear now.

 

I used @v-lili6-msft suggestion to add users as "Viewer" and grant them "build" right. It works for newly added users.

 

But I found that, once I have granted "Contributor" or "Member" access to users before, if I change them to be "Viewer" now, they will still be able to read all data instead of restricted data that within RLS.

Don't know if it is something related to the setting of workspace or not.


I have tested on my side, it works well.

After change them to be "Viewer" , Please wait about 5 minutes then reopen the power bi service and power bi desktop to check it.

It should work well.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lili6-msft
Community Support
Community Support

hi @olF 

First, you should know that RLS only works for viewer users

Using RLS with workspaces in Power BI

If you publish your Power BI Desktop report to a workspace within the Power BI service, the roles will be applied to read-only members. You will need to indicate that members can only view Power BI content within the workspace settings.

 Warning

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.

 

https://docs.microsoft.com/en-us/power-bi/service-admin-rls#using-rls-with-workspaces-in-power-bi

 

Second, for your case, you could add users that only could view power bi content and then give them the permissions of this dataset to create the report.

https://docs.microsoft.com/en-us/power-bi/service-datasets-build-permissions

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TomMartens
Super User
Super User

Hey,

 

I do not understand how do you share the dataset.

If you distribute your pbix to the users, RLS will not work.

 

If you publish your pbix to a dedicated workspace, RLS can work, if this is configured:

The users have to be assigned to the "Viewer" role, if the users are contributor, member, or admin RLS will not work.

The users need build permission on the dataset, to be able to Create their own reports with Power BI Desktop. Being a "Viewer" also means that the users are not able to publish their reports to the same workspace that hosts the dataset. If the workspace is not backed by a Premium Capacity the "Viewer" also need a Pro License to connect to the workspace.

 

Please be aware, that I did not test this myself, but will do it the next week.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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