Power BI Row-Level Security: Static, Dynamic, Direct Lake and Embedded RLS (2026)

Three stacked teal glass slabs narrowing toward the top with a small glowing orange sphere resting above them, on a dark navy background

Last updated: December 3, 2026

By ZapAI Team

Power BI row-level security is the feature everyone switches on and very few people test properly. The report looks right for the person who built it. Then a regional manager opens it and sees every region, or nothing at all. On our Power BI projects, RLS problems almost never come from bad DAX. They come from workspace roles, identity formats and untested edge cases. This guide covers how RLS works in 2026, from static and dynamic roles to Direct Lake, embedding and Copilot, with every product fact checked against Microsoft Learn on December 3, 2026.

Power BI row-level security (RLS) restricts which rows of a semantic model each user can see. You define roles with DAX filters in Power BI Desktop or web modeling, assign users or groups in the service, and test with View as or Test as role. RLS applies only to users with Viewer or read access.

That last sentence is the one that bites. Keep it in mind.

What Is Power BI Row-Level Security, and What Does It Actually Filter?

RLS is a set of roles stored in the semantic model. Each role holds DAX filter expressions on one or more tables. When a user in that role queries the model, Power BI applies those filters to every query, so the user only gets rows where the expression returns TRUE.

Microsoft’s RLS documentation for Power BI, updated November 24, 2026, lays out four steps. Define roles in Desktop. Publish. Add members in the service. Validate with Test as role.

What RLS doesn’t do matters just as much.

  • It filters rows, not columns. See a row, see every column in it.
  • It can’t show totals while hiding detail. Users see details or summaries built from rows they can access, nothing more.
  • Roles are additive. Someone in both Sales and Marketing sees the union of both.
  • Analysis Services live connections keep RLS in the Analysis Services model, not in Power BI.

One more surprise. Import mode ignores security defined in your source database, so SQL Server roles don’t carry over and you rebuild the rules in the model. DirectQuery is different, because the source applies its own security based on the user’s credentials.

Static vs Dynamic RLS: Which One Should You Build?

Static RLS hard-codes a value in each role, such as one role per region. Dynamic RLS uses one role whose filter compares a column to the signed-in user’s identity through USERPRINCIPALNAME(). Static suits a handful of fixed audiences. Dynamic scales to hundreds of users without new roles.

Static RLS

A static rule looks like [Region] = "West". You create a West role, an East role, a South role, and put people in the right one. Simple to read. Painful once you pass a dozen roles, because every new territory means a model change and a republish.

For tiny cases, the RLS guidance for Power BI Desktop even suggests skipping RLS and publishing one semantic model per audience into separate workspaces. Faster and smaller models, at the cost of duplicated reports.

Dynamic RLS with a security table

This is the pattern we build most. A hidden security table maps each user principal name to what they may see, such as a region or cost center. One role filters that table with [UserEmail] = USERPRINCIPALNAME(), and relationships carry the filter to your dimensions and on to the fact table. Someone changes territory? Update a row in the source, refresh, done.

Two identity details trip people up.

  • In Desktop, USERNAME() returns DOMAIN\User. In the service, USERNAME() and USERPRINCIPALNAME() both return the UPN.
  • Microsoft notes the UPN is the sign-in name, not always the email address. An aliased mailbox won’t match a table keyed on the mail attribute.

So key the table on whatever USERPRINCIPALNAME() actually returns. A card visual showing that measure, which Microsoft suggests naming something like Who Am I, settles arguments fast.

Write defensive rules, too. Microsoft’s guidance shows a rule that returns everything unless the user equals Worker, so a typo like Wrker sees every row. Test for each expected value and return FALSE() for anything else. Boring. Safe.

Where Do You Define RLS Roles: Power BI Desktop or the Service?

Both work. In Power BI Desktop, go to Modeling, then Manage roles. In the Power BI service, open the semantic model in web modeling, switch to Editing mode and select Manage roles. Each offers a default editor and a DAX editor, and dynamic rules need the DAX editor.

Microsoft’s page on editing semantic models in the Power BI service, updated October 14, 2026, lists RLS roles alongside measures and relationships. After saving a role on the web, you select Assign to add users right there.

Mind the fine print. Web edits save automatically with no undo, though version history can roll you back. The View as dialog isn’t supported in the service model view yet. You need Write permission to edit at all. And wherever you author, role names can’t contain commas, and DAX arguments use commas even in semicolon locales.

Our habit? Author roles in Desktop or a source-controlled project and keep web modeling for emergencies. Roles that only lived in the browser drift from what the team thinks is deployed, especially once Fabric deployment pipelines move models between stages.

How Do You Assign Members and Groups to RLS Roles?

In the service, open the semantic model’s More options menu, select Security, pick a role and add users or groups by name or email. Microsoft recommends mapping roles to Microsoft Entra security groups, so access follows group membership instead of manual edits in Power BI.

Supported members are individual users (external ones included), distribution groups, mail-enabled groups and Entra security groups. Microsoft 365 groups can’t be added. Neither can groups created in Power BI. Service principals can’t be added either, so RLS isn’t applied for apps that use a service principal as the final effective identity.

External guests need extra care. Microsoft warns that security groups containing B2B guests might not work as expected for RLS, and suggests adding guests directly by email or using dynamic RLS. For guests, USERPRINCIPALNAME() can return user@partner.com or a #EXT# style UPN, depending on tenant configuration. Test with a real guest account. Every time.

And people in no role at all? When a model has RLS, Microsoft’s report consumer security planning guide says users who aren’t mapped to a role won’t see any data. Some organizations use that on purpose as a second lock behind sharing.

How Do You Test RLS With View As and Test as Role?

In Desktop, select View as on the Modeling ribbon, pick a role and optionally enter Other user to simulate a specific UPN. In the service, open the model’s Security page, choose More options next to a role and select Test as role. Then validate again with real accounts.

Through Now viewing as, Test as role lets you switch roles, combine roles or pick a specific person. It also tests other reports on the same model, but only in the same workspace. Microsoft lists its blind spots plainly.

  • No support for DirectQuery models with single sign-on (SSO) enabled, or for paginated reports.
  • Q&A visuals, Quick insights and Copilot can’t be validated with it.
  • For dynamic rules, it doesn’t reproduce how a B2B guest or an embedded app authenticates.

That last point causes the most grief. Test as role tells you the DAX is right. It doesn’t tell you the identity format is right. In our projects, we keep a few Viewer-only test accounts mapped to different rows of the security table, and sign in as them before every go-live.

Why Do Workspace Admins, Members and Contributors Bypass RLS?

Because RLS only applies to users with Read permission on the semantic model. Admin, Member and Contributor workspace roles carry Write permission, so RLS isn’t enforced for them and they see every row. If a person must be filtered, give them the Viewer role or app access only.

Microsoft’s consumer planning guide spells it out. Read permission: RLS enforced. Read plus Build: still enforced, so self-service report builders only see their rows. Write, from a workspace role or a per-item permission: not enforced.

This is the most common RLS failure we find in reviews. Picture a sales director made Contributor so they can fix a typo in a report title. Now they see the whole company’s pipeline. Nobody notices until someone forwards a screenshot.

The fix is structural. Keep semantic models in a workspace where only the BI team edits, and distribute reports through apps or a separate workspace where consumers are Viewers. It’s a core piece of good Fabric governance.

Licensing ties in here. Per Microsoft’s Fabric licenses and capacity page, updated November 10, 2026, users with a free license and the Viewer role can view Power BI content on F64 or larger capacities. Below F64, each viewer needs Pro, Premium Per User or an individual trial. The same page says Microsoft is retiring Power BI Premium P SKUs in favor of F SKUs, which our Fabric vs Power BI Premium comparison walks through.

A row of four square glass tiles on a reflective floor, three glowing teal and the second glowing orange, on a dark navy background

RLS vs Object-Level Security: What’s the Difference?

RLS hides rows. Object-level security (OLS) hides whole tables or columns, including their names and metadata. For a user without access, an OLS-secured column simply doesn’t exist. Use RLS for who sees which customers. Use OLS for who sees the salary column.

Microsoft’s object-level security page says OLS is defined inside model roles using TMDL view or external tools such as Tabular Editor, by setting metadataPermission to none. You assign members on the same Security page.

The catches are real. OLS also applies only to Viewers. A visual that uses a secured field throws a field-not-found error, so the report just looks broken. And models with OLS don’t support Quick insights, Smart narrative visuals or the Excel Data Types gallery.

So design reports per audience when you use OLS. One report for HR with salary, one for managers without it. Making one report serve both rarely ends well.

How Does RLS Work With DirectQuery and Direct Lake?

With DirectQuery, semantic model RLS still filters queries, and the source can also apply its own security using the user’s credentials when SSO is on. With Direct Lake, model RLS is supported, but where you put the rules (model, SQL analytics endpoint or OneLake security) changes performance and behavior.

DirectQuery

Every RLS filter becomes part of the SQL sent to the source. Microsoft’s guidance says to optimize that source with proper indexes or persisted computed columns. If the source is on-premises, the gateway handles every one of those queries, and our on-premises data gateway guide covers SSO and sizing for that setup.

Direct Lake on SQL vs Direct Lake on OneLake

Here’s where 2026 gets interesting. Microsoft’s Direct Lake security integration page describes two flavors.

  • Direct Lake on SQL analytics endpoints. A query that touches a table with SQL endpoint RLS, or a SQL view, falls back to DirectQuery. With fallback disabled, it fails.
  • Direct Lake on OneLake. No SQL endpoint, no fallback. It applies OneLake security roles, and per the Direct Lake overview, SQL-based RLS isn’t applied.

Read that second bullet again. If your warehouse team built RLS in T-SQL and the model moves to Direct Lake on OneLake, those rules don’t follow. Semantic model RLS works in both modes, and Microsoft strongly recommends a fixed identity cloud connection with it.

Why? With the default SSO connection, users need read access to the lakehouse or warehouse itself, and Microsoft notes they might then bypass the model’s rules. A fixed identity keeps users out of the lakehouse and makes the model the only door.

Where OneLake security fits

OneLake security lets workspace Admins and Members define roles on an item down to tables, columns and rows. Microsoft’s OneLake table, column and row-level security page says these roles use a grant model, don’t restrict Admin, Member or Contributor, and don’t support dynamic or multitable RLS queries. Big difference from model RLS, where dynamic rules are the norm.

When both layers exist, Direct Lake on OneLake unions the user’s OneLake roles, then intersects the result with the model’s roles. Microsoft advises OneLake security for rules that must hold across every engine, and model RLS when consumers have no lakehouse permission and the connection uses a fixed identity.

Status check. Microsoft’s OneLake data security overview doesn’t label OneLake security roles as preview, while enforcement in authorized third-party engines is marked preview. Confirm the current state in your tenant. For which store to secure in the first place, see our Fabric lakehouse vs warehouse guide.

A tall teal-edged glass panel with a pale frosted band across its middle, standing on a reflective floor against a dark navy background

How Does RLS Work in Power BI Embedded (App Owns Data)?

In app-owns-data embedding, Power BI doesn’t know your customers. Your app passes an effective identity (a username, one or more roles and the dataset) when it generates the embed token, and the model applies RLS for that identity. Role assignments in the service don’t apply to embed tokens.

Microsoft’s cloud RLS for embedded analytics page gives the details.

  • Username, roles and dataset are all required, and only one username can be passed.
  • For static roles the username can be any string. For dynamic roles it becomes what USERNAME() returns, such as a customer code.
  • A service principal that omits the identity gets a failed token. A master user gets a working token that returns all data.

That master user behavior is a quiet risk. A bug in your token code doesn’t throw an error. It shows every customer’s data.

Microsoft’s embedded security overview adds that an identity passed in an embed token gets RLS applied even if the app’s account is a workspace admin. CUSTOMDATA() can carry an extra string when a username isn’t enough. Direct Lake models need a V2 embed token, plus a fixed identity connection when you embed with a service principal.

Does RLS Apply to Composite Models, Analyze in Excel and Copilot?

Mostly yes, with sharp edges. Analyze in Excel respects RLS for Viewers, even with Build permission. Composite models only enforce RLS on the model where it’s defined. Microsoft’s training says Copilot chat answers stay within the user’s RLS scope, but Test as role can’t validate Copilot.

Composite models

Microsoft’s composite models documentation is blunt. RLS applies on the source where it’s defined, not across the composite. You can’t define RLS on remote tables, and local RLS doesn’t filter them. Add one table from a source model, and report users could query any table in that source that isn’t protected by RLS.

Another gotcha. If RLS relies on a DirectQuery users table in a composite model, new users only appear after the next model refresh, because the service caches that query. Our Power BI incremental refresh guide explains how refresh scheduling affects that timing.

Analyze in Excel

Microsoft’s RLS page uses this exact example. Viewers with Build permission in Analyze in Excel see only their filtered rows. A Contributor in the same workbook sees everything.

Copilot

Microsoft’s training unit on testing security and managing roles states that Copilot chat respects RLS and that OLS-secured columns aren’t reachable through natural language queries. We’d still test it. Sign in as a Viewer, ask for restricted rows, and confirm you don’t get them.

Copilot needs a paid Fabric capacity (F2 or higher) or Power BI Premium (P1 or higher), per Microsoft’s Copilot for Power BI overview. Pro or PPU alone isn’t enough. Our Copilot in Power BI guide covers setup and model preparation.

How Does RLS Affect Power BI Performance?

RLS adds a filter to every DAX query, so a poorly designed model gets slower. Filter dimension tables rather than fact tables, rely on active relationships instead of LOOKUPVALUE, avoid bidirectional security filtering unless you need it, and compare Performance Analyzer timings with and without View as.

  • Filter dimensions, not facts. A filter on a small Region table propagates cheaply. One evaluated on a huge Sales table doesn’t.
  • RLS filters only travel through active relationships.
  • Microsoft’s RLS page says USERELATIONSHIP() in models with RLS might cause unexpected errors.
  • Apply security filter in both directions can hurt query performance, so use it sparingly.

Need share of total revenue that ignores RLS? DAX can’t override RLS. It can’t even detect it. Microsoft’s pattern is a hidden summary table that roles don’t filter. Watch for leaks. With two regions, a user can subtract their number from the total.

For Direct Lake on SQL, DirectQuery fallback is the hidden cost. Our Fabric capacity throttling guide shows how to spot it in the metrics app.

How we choose an RLS approach (ZapAI practice, not Microsoft guidance)

This is our rule of thumb from projects, not Microsoft guidance. Adjust for your data and risk.

ScenarioApproach we usually takeWhere rules liveHow we test
Two or three fixed audiences, small dataSeparate models per audience, or a few static rolesWorkspace access, or static DAX rolesView as in Desktop, one real Viewer account per audience
Internal sales or finance, users mapped to territoriesDynamic RLS with a hidden security table keyed on UPNSemantic model roles mapped to Entra security groupsView as with Other user, then signed-in test Viewers
Sensitive columns such as salary or health dataRLS for rows plus OLS for columns, separate reports per audienceModel roles, OLS authored in TMDL viewTest accounts per role, check every visual for field errors
Fabric lakehouse with Direct Lake and other engines reading the same dataOneLake security for cross-engine rules, model RLS with a fixed identity where neededOneLake security roles plus model rolesQuery through the model, the SQL endpoint and a notebook as the same test user
Customer-facing embedded analyticsDynamic RLS on a customer key, or workspace isolation at large scaleModel roles fed by effective identity in the embed tokenAutomated token tests, including a bad username that must return no rows

The rules are rarely the hard part. Ownership of the security table is.

What’s Changed for Power BI RLS in 2026?

No single headline release. Several shifts, though. Here’s what Microsoft Learn shows as of December 3, 2026.

  • Microsoft’s OLS page, dated June 30, 2026, documents authoring OLS in TMDL view, so external tools are no longer the only route.
  • The RLS page, updated November 24, 2026, includes detailed B2B guest guidance, covering the #EXT# UPN format and the security group caveat.
  • Direct Lake documentation explains how OneLake security, SQL endpoint rules and model roles combine.
  • The November 2026 Power BI update says standalone Power BI Copilot support is planned to end by the end of January 2027, with app-scoped Copilot removal scheduled for January 2027. Copilot within reports stays.
  • P SKU retirement continues, with Microsoft pointing customers to F SKUs.

Moving from P to F capacity? Review RLS at the same time. Workspace reassignments are exactly when role mappings get shuffled.

Common Mistakes With Power BI Row-Level Security

We see the same handful in almost every review.

  • Testing as the report author, who’s a workspace Admin and sees everything anyway
  • Making business users Contributors so they can tweak a report, which switches RLS off for them
  • A security table keyed on email when USERPRINCIPALNAME() returns a different UPN
  • B2B guests inside a security group, with nobody checking what they actually see
  • Overlapping roles, where one says FALSE() and another says TRUE(), so the user sees everything
  • Rules written as everything except X, so a typo exposes all rows
  • Expecting T-SQL RLS in the warehouse to carry through to Direct Lake on OneLake
  • Embed tokens generated by a master user with no identity, which return all data

A three by three grid of square glass tiles, six glowing teal and three glowing orange, on a dark navy background

Power BI Row-Level Security Checklist

Run it before go-live and again whenever workspace access changes. It’s ours, built from Microsoft’s documentation and our own projects.

  • Roles defined in Desktop or a source-controlled project, with dynamic rules in the DAX editor
  • Security table hidden, keyed on the value USERPRINCIPALNAME() really returns, refreshed on a known schedule
  • Every rule returns no rows for unexpected values
  • Filters on dimension tables, relationships active, bidirectional security filtering only where required
  • Roles mapped to Entra security groups; B2B guests added directly or handled through dynamic RLS
  • Consumers are Viewers or app users, with no Write permission on the model
  • OLS on sensitive columns, with reports split by audience
  • Direct Lake models on a fixed identity connection when model RLS is the main control
  • Validated with View as, Test as role and signed-in Viewer accounts, including Copilot and Analyze in Excel

Short on time? Check workspace roles, test with a real Viewer account and fix the identity format. Those three catch most of the incidents we’re called in for.

Wrapping Up

Power BI row-level security works when you treat it as part of your access design, not a checkbox in the model. Use dynamic RLS with a clean security table for most internal reporting. Keep consumers in the Viewer role, because Admin, Member and Contributor bypass RLS. Add OLS for sensitive columns, pick your Direct Lake security layer on purpose, pass an effective identity on every embed token, and test with real accounts, Copilot included.

ZapAI is a Microsoft Dynamics 365, Power Platform, Fabric and AI consulting firm in Irving, Texas, working with businesses across Dallas-Fort Worth and nationwide. Our Power BI consultants help BI teams design dynamic RLS and OLS, clean up workspace roles, and secure Direct Lake and embedded models before sensitive data leaks, as part of wider Microsoft Fabric services work. Not sure who can see what in your reports today? Book a Power BI security review, and we’ll walk through your roles, workspace access and test coverage with you.

Questions BI Teams Ask About Power BI Row-Level Security

Why can a workspace Contributor see all the data even though they’re in an RLS role?

Contributor carries Write permission on the semantic model, and RLS only applies to Read access. Admins and Members are in the same position. Move people who need filtering to the Viewer role or give them access through an app.

Static or dynamic RLS, does the choice really matter?

For three fixed regions, not much. Past a dozen audiences it matters a lot. Static rules mean one role per value and a republish for every change, while dynamic RLS uses one role and a security table you maintain as data.

What happens to a user who isn’t assigned to any role?

They see no data. Microsoft’s consumer planning guidance says that when a model has RLS, users who aren’t mapped to a role won’t see any. That’s usually the cause when one person reports an empty report and everyone else is fine. Check their role mapping and their UPN first.

Can I hide a column with RLS?

No. RLS only filters rows. Use object-level security for tables and columns.

Does RLS work with Direct Lake models?

Semantic model RLS is supported in both Direct Lake modes, and Microsoft strongly recommends a fixed identity cloud connection with it. The bigger question is where your rules live. SQL endpoint RLS forces Direct Lake on SQL to fall back to DirectQuery, and Direct Lake on OneLake doesn’t apply SQL-based RLS at all, using OneLake security instead. Decide that before you build, not after a pilot exposes it.

How do I apply RLS in an embedded app for customers?

Pass an effective identity when generating the embed token, with a username, the role names and the dataset ID. With dynamic RLS, the username can be a customer key. Role assignments in the Power BI service don’t affect app-owns-data embed tokens.

Will Copilot show users data outside their RLS role?

Microsoft says no. Its training material states Copilot chat respects RLS and OLS-secured columns aren’t reachable through natural language queries. Still, Test as role can’t validate Copilot, so sign in as a real Viewer and try to break it before rollout. It’s a short test, and a cheap one.

Leave a Reply

Your email address will not be published. Required fields are marked *

Book a free consultation