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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
schaetzles
Frequent Visitor

Export is not filtering the row level security

Hello Guys,

I have a report with a row level security. 
If i export data from a table in power bi desktop the row level works and the csv is filtered right.
However, while testing different users in the power bi app, the exported data will not be filtered right and the user can see all data without any restrictions in the export. 

Does anyone know if this is just in the testing because im the admin of the workspace or will this be the final behaviour for the users in our app?

BEst regards

1 ACCEPTED SOLUTION
MatthiasPaul
New Member

Hello @schaetzles!

 

You are right this should be due to your role as the Admin in the workspace. Any role except the Viewer role will not have RLS applied to them. From the documentation:

 

"If you publish your Power BI Desktop report to a workspace in the Power BI service, the RLS roles are applied to members who are assigned to the Viewer role in the workspace. Even if Viewers are given Build permissions to the dataset, RLS still applies. For example, if Viewers with Build permissions use Analyze in Excel, their view of the data will be protected by RLS. Workspace members assigned AdminMember, or Contributor have edit permission for the dataset and, therefore, RLS doesn’t apply to them. If you want RLS to apply to people in a workspace, you can only assign them the Viewer role. Read more about roles in workspaces."

 

Row-level security (RLS) with Power BI - Power BI | Microsoft Learn

 

Try to create a user with the viewer role and see if RLS applies.

 

Best,

 

MatthiasPaul

View solution in original post

2 REPLIES 2
MatthiasPaul
New Member

Hello @schaetzles!

 

You are right this should be due to your role as the Admin in the workspace. Any role except the Viewer role will not have RLS applied to them. From the documentation:

 

"If you publish your Power BI Desktop report to a workspace in the Power BI service, the RLS roles are applied to members who are assigned to the Viewer role in the workspace. Even if Viewers are given Build permissions to the dataset, RLS still applies. For example, if Viewers with Build permissions use Analyze in Excel, their view of the data will be protected by RLS. Workspace members assigned AdminMember, or Contributor have edit permission for the dataset and, therefore, RLS doesn’t apply to them. If you want RLS to apply to people in a workspace, you can only assign them the Viewer role. Read more about roles in workspaces."

 

Row-level security (RLS) with Power BI - Power BI | Microsoft Learn

 

Try to create a user with the viewer role and see if RLS applies.

 

Best,

 

MatthiasPaul

edhans
Super User
Super User

RLS only works if users are Viewers. If they have Contribution, Member, or Admin rights, they can see everything anyway as they have direct access to the datasets and RLS doesn't kick in.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.