Skip to content

Security and Governance in Microsoft Fabric

Step 1 of 20

Microsoft Fabric Security and Governance for DP-600

Introduction

Microsoft Fabric security and governance starts with identifying how someone reaches the data. For DP-600 preparation, practise choosing between workspace roles, item permissions, OneLake security, SQL policies and semantic-model security. A contractor opening one report and a regional analyst querying a lakehouse through Spark need different controls. This lesson also covers Purview sensitivity labels and endorsement.

Learning objectives

  • Distinguish workspace-level access from item-level access and pick the narrowest one that works.
  • Implement row-level, column-level, object-level and file-level access control in warehouses, lakehouses and semantic models.
  • Explain how OneLake security, SQL analytics endpoint security and semantic-model security interact.
  • Apply and reason about sensitivity labels and their inheritance.
  • Choose between the Promoted, Certified and Master data endorsement states.

1. The layered security model

Fabric checks access along the path the request takes. Each security control answers a different question. Classification and endorsement complement those controls:

  1. Entra ID authentication and tenant settings – who are you, and are you allowed to use Fabric features at all? Tenant admin settings (for example who may create workspaces or share externally) can be limited to security groups.
  2. Workspace roles – what can you do to everything inside this workspace?
  3. Item permissions – what can you do to this one item (a lakehouse, a report, a semantic model)?
  4. Data-level security – which rows, columns, tables or files within the item can you see?
  5. Information protection – sensitivity labels that follow the data and can restrict export and sharing.
  6. Governance signals – endorsement, which does not restrict anyone but tells users what to trust.

Exam tip: when a question says "grant access to a single report or table", the answer is almost never a workspace role. When it says "everything in the workspace", it almost never is item sharing.

2. Workspace-level access controls

A workspace is the main container and security boundary. Four roles exist, from most to least privileged:

Role Typical rights Typical assignee
Admin Everything, including deleting the workspace, managing access and all roles Workspace owner
Member Create, edit and delete content, share items, add users as Member, Contributor or Viewer Team lead
Contributor Create and edit items, run pipelines and write data. App updates require delegation from an admin Developer, data engineer
Viewer View workspace items. Data access still depends on the permissions and security rules of the engine used Report consumer

Key facts the exam relies on:

  • Admin, Member and Contributor have broad item permissions. They can edit semantic models, so model RLS and OLS do not constrain them. OneLake roles mainly govern readers. SQL policies and shortcut permissions have their own enforcement rules, so check the actual access path and test with the intended identity.
  • Assign roles to Microsoft Entra security groups, not to individuals. A group per role per workspace keeps audits simple.
  • Workspace roles flow down to all items. You cannot hide one item from a Contributor.
  • Fabric workloads require a workspace on an eligible capacity or trial. The capacity provides compute. Workspace, item and data permissions determine access.

Example. Contoso has a workspace Sales-Prod with a lakehouse, a warehouse, a semantic model and three reports. The data engineering group needs to run pipelines and edit notebooks (Contributor). The BI developers who author models are Members of a separate dev workspace but only Viewers in production. The business users do not get a workspace role at all; they receive an app or report access through item permissions (section 3). This separation also supports the Fabric development lifecycle and deployment pipelines.

3. Item-level access controls

Item permissions let you grant access to one item without touching the rest of the workspace. You set them by sharing the item or from its Manage permissions page. The main permissions are:

Permission What it allows Notes
Read See the item and its metadata For a lakehouse, gives access to connect to the SQL analytics endpoint
ReadAll Read underlying data through OneLake With OneLake security enabled, broad read access comes from the default DefaultReader role if it is still configured
Build (semantic model) Create new content on the model: reports, Analyze in Excel, composite models Needed to connect from Power BI Desktop
Reshare Share the item with others Grant sparingly
Write / Edit Modify the item Usually via roles instead
Execute Run a supported item Check the permissions available for the item type

Practical rules:

  • A report consumer needs permission to read the report and the semantic model. Sharing normally grants the needed model Read permission. Check the model permissions, especially across workspaces or when using an app. Grant Build separately when the user must create content or use tools such as Analyze in Excel. Direct Lake with single sign-on also requires appropriate source access.
  • Lakehouse Read permits connection to the SQL analytics endpoint. The endpoint applies its data access mode. When OneLake security is enabled, review the DefaultReader role and any other grants before assuming that a restricted role limits someone with ReadAll.
  • Use sharing links of type "specific people" for external or sensitive items, and restrict who can create "organization-wide" links through tenant settings.

Worked example 1: choosing the access layer. Scenario. A contractor, Maya, must open the Q3 Pipeline report in the Sales-Prod workspace and nothing else. The report is built on a semantic model in the same workspace. What is the least-privilege approach?

Reasoning, step by step.

  1. A workspace Viewer role would expose every report and the lakehouse. Too broad.
  2. Sharing the report normally grants the model Read access needed for consumption. Leave the Build option unchecked when the contractor only needs to view the report.
  3. Add Maya (through a security group named Contractors-Pipeline) as a recipient of the report share, without Reshare.
  4. If the model has row-level security roles, check that the group is assigned to a role; otherwise the contractor may see no data.

Solution. Share the report with the group at item level, no Reshare, and assign the group to the model's RLS role if one exists.

Why the others are worse. Viewer on the workspace exposes unrelated items. Contributor is a write role and bypasses RLS. Sending a PBIX or Excel export copies data outside governance.

4. Data-level access: row, column, object and file

Choose the control for the path your readers use: a SQL endpoint, an engine that reads OneLake, or a semantic model.

4.1 Row-level security (RLS)

RLS filters which rows a user can see.

  • Warehouse and SQL analytics endpoint (T-SQL). For a warehouse or an endpoint in delegated identity mode, use an inline table-valued function and a security policy. This example assumes an existing dbo.FactSales table with a varchar(20) Region column. It maps two test principals to distinct regions. Verify what USER_NAME() returns for the actual readers before assigning production access.
SQL
CREATE SCHEMA Security;
GO
CREATE FUNCTION Security.fn_region_filter(@Region varchar(20))
RETURNS TABLE
WITH SCHEMABINDING
AS RETURN
    SELECT 1 AS allowed
    WHERE (@Region = 'EMEA' AND USER_NAME() = 'maya@contoso.com')
       OR (@Region = 'APAC' AND USER_NAME() = 'li@contoso.com');
GO
CREATE SECURITY POLICY Security.RegionPolicy
    ADD FILTER PREDICATE Security.fn_region_filter(Region) ON dbo.FactSales
    WITH (STATE = ON);

A user without a matching assignment sees no rows. In a larger deployment, use a controlled principal-to-region mapping instead of editing the function for each employee. Test a permitted region and an unmapped principal.

  • Semantic model. With an Import model, you can define an RLS role on DimRegion using the following filter. It checks the user's UPN against a UserRegion mapping. An active relationship from DimRegion to FactSales passes the filter to the facts. Protect the mapping and test using a read-only account.
DAX
VAR CurrentUPN = USERPRINCIPALNAME()
VAR CurrentRegion = DimRegion[Region]
RETURN
    COUNTROWS (
        FILTER (
            UserRegion,
            UserRegion[UserUPN] = CurrentUPN
                && UserRegion[Region] = CurrentRegion
        )
    ) > 0

A role with a hard-coded region uses static RLS. The UPN mapping uses dynamic RLS. Assign the appropriate users or Entra groups to the model role in the service.

  • OneLake security. Data-access roles on a lakehouse can include a row-level rule written as a SQL-style predicate on a table. Supported engines enforce the filters. Direct file reads are blocked when that path cannot apply the row or column rules.

RLS in a semantic model does not apply to users who have Write permission on the model (workspace Admin, Member, Contributor), because they can edit the model anyway. This is a classic exam trap.

4.2 Column-level security (CLS) and object-level security (OLS)

  • CLS in T-SQL restricts columns with GRANT SELECT ON dbo.Customer (CustomerId, Region) TO [Analysts] and omitting sensitive columns (or DENY SELECT on a column).
  • OneLake security can grant a role access to selected columns of a table.
  • OLS in a semantic model hides entire tables or columns from a role. It is configured through the model's role metadata (using Tabular Editor or the TMDL view). A hidden object disappears from the field list; a report visual that uses it shows an error for that user.
  • Dynamic data masking in the warehouse obfuscates values (for example showing xxxx@xxxx.com) without hiding the column.

4.3 File-level and folder-level access

Lakehouse files live in OneLake. OneLake security (data access roles) lets you grant read access to specific folders under Files/ or specific tables under Tables/, with members taken from Entra groups. A role includes a scope of tables and folders, optionally with row and column rules on tables, and users in several roles get the union of their permissions. A broad grant on the same table, including DefaultReader, can defeat the narrower role. For a comparison with a different platform, see Unity Catalog row filters and column masks.

4.4 Where each control is enforced

Control Defined in Enforced for Common pitfall
Workspace role Workspace Everything in the workspace Too broad
Item permission Item That item A separate OneLake grant can expose data outside the SQL endpoint
T-SQL GRANT/DENY, RLS, CLS, masking Warehouse / SQL analytics endpoint SQL queries on that endpoint Spark or OneLake file access can read the same data
OneLake security roles Lakehouse Supported Fabric engines, including the SQL analytics endpoint in user identity mode Check all grants and the source permissions of shortcuts
Semantic model RLS/OLS Semantic model Reports and queries on the model Does not apply to users with Write permission

Use OneLake security for supported engines when readers access the same table through more than one route. A SQL analytics endpoint must be in user identity mode to enforce OneLake table roles. Delegated mode uses SQL permissions. In user identity mode, Microsoft documents cases where RLS still applies to users with elevated workspace roles, so test using the actual identities. For reports, Direct Lake on OneLake with single sign-on checks the viewer’s source permissions. A fixed connection identity reads the source on behalf of the model, so use model RLS or OLS for report readers and restrict their direct access to the source. Direct Lake on SQL can fall back to DirectQuery, where SQL permissions matter.

Worked example 2: pick the control. Scenario. A retail lakehouse holds Sales with columns OrderId, Region, Amount, CardNumber. Regional analysts (group Analysts-EMEA) must read only EMEA rows and must not see CardNumber. They use SQL and Spark notebooks. They are Viewers of the workspace.

Reasoning.

  1. Switch the lakehouse SQL analytics endpoint to user identity mode so both SQL and Spark enforce OneLake roles. Review the impact on running queries before switching.
  2. Create a read role for the group with a row filter for EMEA and column access that excludes CardNumber.
  3. Check that DefaultReader and other roles do not give these users broader access. Test the same read-only account in SQL and Spark, including an attempted CardNumber query.

Solution. Keep the analysts as readers and configure the OneLake role and endpoint together. SQL-only filtering leaves other access paths to review. Masking does not remove the column, and model OLS only governs queries through the model.

5. Sensitivity labels

Sensitivity labels come from Microsoft Purview Information Protection. A label such as Confidential or Highly Confidential is applied to Fabric items and Power BI content and:

  • is shown on the item and in the lineage view;
  • can carry protection to supported export paths, including supported Excel, PowerPoint and PDF exports, when the label is configured for encryption;
  • can be applied manually, by default, or by a mandatory labeling policy that requires users to label supported items before saving, subject to policy scope;
  • supports downstream inheritance: when a label is applied to a semantic model, reports and exports that depend on it can inherit it, and a more restrictive label on upstream data can propagate to dependants when the tenant setting is enabled;
  • requires the tenant admin to enable "Allow users to apply sensitivity labels for content" and label policies to be published to the users.

Grant access through Fabric permissions. Sensitivity labels support protection on export, auditing and data loss prevention. Check the applicable tenant settings and label protection policies. A user can only apply a label they are permitted to use, and lowering a label may require justification, depending on policy.

Worked example 3. An analyst exports a Highly Confidential report to Excel and mails it. Because the label carries encryption, the Excel file is encrypted and only authorized recipients can open it. RLS limits what the analyst can export from the model. The sensitivity label provides protection that persists in the exported file.

6. Endorsement

Endorsement helps users find reliable content. It is a governance signal, not a security control.

State Who can set it Meaning
Promoted Any user with write permission on the item The owner believes it is ready for sharing
Certified Only authorized reviewers designated by the tenant admin Meets organizational quality standards
Master data Authorized users designated by the tenant admin The authoritative source for a type of data (customers, products)

Endorsement applies to many item types, including semantic models, lakehouses, warehouses, dataflows and reports. Use the endorsement filter in the OneLake catalog to find trusted items. Master data designation is available for eligible data items. A contributor can certify an item only when authorized by the tenant administrator.

Common pitfalls

  • Giving Contributor to someone who only needs to read. The role grants edit rights and bypasses semantic-model RLS and OLS.
  • Expecting semantic-model RLS to protect the lakehouse behind a Direct Lake or composite model when users can query the lakehouse directly.
  • Assuming a sensitivity label restricts in-product access; it protects data that leaves and informs policies.
  • Assigning roles to individuals instead of groups.
  • Confusing Promoted (anyone with write access) with Certified (only designated reviewers).
  • Forgetting that OLS errors appear in visuals that reference a hidden column.

Exam tip: read the persona's engine in the scenario. If users access data from Spark and SQL, think OneLake security; if only through reports, think semantic-model RLS/OLS; if only through SQL, think T-SQL policies.

Mini case study

Fabrikam Logistics runs a Logistics-Prod workspace with a lakehouse LH_Shipments, a Direct Lake semantic model and a report. Requirements: (1) the 12 data engineers must build pipelines; (2) 400 regional managers must see only shipments of their own region in reports; (3) the finance team must read the Cost column in SQL but regional managers must not; (4) the model should show a "trusted" badge once reviewed by the governance office; (5) exported files containing shipment prices must be encrypted.

Proposed solution and commentary.

  1. Put the data engineers in an Entra group assigned Contributor; do not make them Members unless they must manage access.
  2. Regional managers get no workspace role. They consume through the report or app. Define dynamic RLS on the semantic model using USERPRINCIPALNAME() and a UserRegion mapping table, and assign the managers' group to the role.
  3. Give finance the required SQL access to Cost using the endpoint’s configured access mode. Use a fixed model connection identity with the source permissions it needs. Keep regional managers on the report path, with model OLS restricting Cost and dynamic RLS restricting regions. Test visuals and measures that reference Cost before release.
  4. Ask the governance office (designated certifiers) to set the model to Certified; owners can promote it while awaiting certification.
  5. Apply the Highly Confidential sensitivity label with encryption to the model; verify that the report inherits the label and that the intended export path preserves protection.

Why this works. Each requirement is met at the narrowest layer: roles for builders, RLS/OLS for consumers, endorsement for trust, labels for exports. No one receives a role broader than needed.

Key terms

  • Workspace role: Admin, Member, Contributor or Viewer, applied to all items in a workspace.
  • Item permission: Read, ReadAll, Build, Reshare and similar rights on one item.
  • RLS / CLS / OLS: row, column and object-level security.
  • OneLake security: role-based data access on lakehouse tables and folders, with row and column rules.
  • Sensitivity label: a Purview Information Protection classification that follows content.
  • Endorsement: Promoted, Certified or Master data signal.

Summary checklist

  • I can state what each workspace role may do and why model authors with Write permissions are outside model RLS.
  • I can grant one user access to one item without a workspace role.
  • I know where RLS, CLS, OLS, masking and file-level access are configured and which engines honour them.
  • I know labels protect exported data and inherit downstream, and that they are not an access list.
  • I can tell Promoted, Certified and Master data apart and who can set each.

Official sources