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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Extract data with RLS applied

Hi all - 

 

I have set up RLS and published to the service, but when i test the role and export data, the data export contains all rows and not just the Org that i have the filter set on. For example, if my Org is India, the visual shows only data related to India but the export in .XLS format contains rows related to all countries and not just India. Does anyone know why this happens? Is it a known bug that is being worked on?

This defeats the purpose of RLS if they are able to export all underlying data although i have specified only to export summarized data.

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

hi, @Anonymous 

If you are in "test as role" model, RLS doesn't apply for this report when you export data.

But in the actual scene, RLS works well.

and here is a same post for you refer to:

https://community.powerbi.com/t5/Issues/RLS-security-does-not-apply-on-exported-data-when-tested-by-role/idi-p/609548

"This is by design. It is just to test the role but not to apply the same filter for exporting."

 

Best 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

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

If you are in "test as role" model, RLS doesn't apply for this report when you export data.

But in the actual scene, RLS works well.

and here is a same post for you refer to:

https://community.powerbi.com/t5/Issues/RLS-security-does-not-apply-on-exported-data-when-tested-by-role/idi-p/609548

"This is by design. It is just to test the role but not to apply the same filter for exporting."

 

Best 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.
Anonymous
Not applicable

Ok thanks, but i realized this was not the solution in my case so i want to make everyone aware. If your user has a "viewer" role, please also ensure that you assign them "Build" permission by going to "manage permissions" in the dataset. Only once they have this permission will you see that they are able to export data. Without this permission set, they will not be able to export data. Once you set the build permission, theyshould be able to get data from the dashboard.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.