Tiny Fixes · 6 of 10
Why does my Power BI RLS not work? Store manager sees everything
In this video
I set up row-level security: a role called North manager that only shows the North store. My store manager still saw all 8 stores.
Why: row-level security only filters workspace Viewers. Admins, Members and Contributors can edit the semantic model, so RLS doesn't apply to them. My manager was a Member, so the role was ignored.
First, the security role itself: in Power BI Desktop, Modeling, Manage roles. Mine is North manager, with the rule: Sales table, Store equals North. Then Home, Publish, and pick your workspace.
The fix, Power BI website, in 2 steps:
- Click Workspaces on the left and open your workspace. Click Manage access at the top and change the person from Member to Viewer.
- In the workspace list, find the item whose Type says Semantic model (the data behind your report). Click its More options (...), then Security. Pick your role, type the person's email, click Add, then Save.
Tip: everyone who reads the report needs a security role. A Viewer in no role can't open the report at all.
Check it: on the same Security page, open the role's More options and pick Test as role. Before the fix, the manager saw 8 stores. After the fix, only North, in the manager's own browser too.
Two catches:
- A Viewer who isn't in any role sees this message: "The report can't be viewed because the underlying dataset uses row-level security (RLS)."
- Test as role uses your own identity for dynamic rules (USERPRINCIPALNAME). For those, sign in as the real user to check.
Optional, the next level (Microsoft's recommended setup): for people who only read reports, a Power BI app is generally the better way to share than workspace access; app users with Read permission are filtered by RLS too. And where you can, put a security group in the role (a list of people your IT team keeps up to date) instead of adding people one by one.
The rule: readers get filtered. Anyone who can edit the model (workspace Admin, Member, Contributor, or Write permission) sees everything.
Microsoft 365 groups can't be added to a role; use the person's email or a security group.
Docs:
Row-level security with Power BI: learn.microsoft.com/fabric/security/service-admin-row-level-security
Roles in workspaces: learn.microsoft.com/power-bi/collaborate-share/service-roles-new-workspaces
RLS guidance (security groups): learn.microsoft.com/power-bi/guidance/rls-guidance
Report consumer security planning (apps, when RLS applies): learn.microsoft.com/power-bi/guidance/powerbi-implementation-planning-security-report-consumer-planning
Read the transcript
Your store manager can see every store's sales. And you did set up row-level security (RLS). Here's why. Your report lives in a workspace, a shared folder on the Power BI website. Everyone in it gets a workspace role, their permission level. Row-level security only filters people with the Viewer role.
Admins, Members and Contributors skip it, because they're allowed to change the data model. Your manager is a Member, so your security role is ignored. First, the security role itself. You make it in Power BI Desktop: Modeling, then Manage roles. Mine is called North manager.
Its rule: on the Sales table, Store equals North. Then, on the Home tab, click Publish and pick your workspace. Now the fix, on the Power BI website, in 2 steps. Step 1. Click Workspaces on the left and open your workspace. Click Manage access at the top, and change the manager from Member to Viewer.
Step 2. In the list, find the item whose type says Semantic model. That's the data behind your report. Click its 3 dots, then Security. Pick your role, type the manager's email, click Add, and Save. Tip: everyone who reads the report needs a security role.
A Viewer in no role can't open the report at all. Now check it. On the same Security page, click the 3 dots next to the role and pick Test as role. You should see only North. And in the manager's own browser: before the fix, all 8 stores.
After the fix, only North. Optional, next level from Microsoft: for people who only read reports, share a Power BI app, a read-only package of your workspace. And where you can, put a security group in the role, a list of people your IT team keeps up to date, not one person at a time.
So remember: readers get filtered. Anyone who can edit the data model sees everything. Found this useful? Hit like and subscribe for more fixes that keep your data safe. See you in the next one!