Configure object-level security (OLS) in Power BI: hide sensitive tables and columns
Object-level security (OLS) hides selected tables or columns, including their metadata, from specified roles in a Power BI semantic model. Row-level security (RLS) filters rows; OLS makes schema objects inaccessible. This guide covers Fabric and Power BI semantic models, using the documented TMDL view and Tabular Editor workflows.
Configure object-level security (OLS) in Power BI: hide sensitive tables and columns
Object-level security (OLS) hides selected tables or columns, including their metadata, from specified roles in a Power BI semantic model. Row-level security (RLS) filters rows; OLS makes schema objects inaccessible. This guide covers Fabric and Power BI semantic models, using the documented TMDL view and Tabular Editor workflows.
When to use OLS
Use OLS when some report consumers must not discover or query a sensitive object, such as a payroll table or personal-data column. RLS limits which rows are visible but does not hide tables or columns. OLS can hide object data and names.
| Need | Control |
|---|---|
| Different users see different rows | RLS |
| Hide a table or column itself from a role | OLS |
| Keep a column visible but mask its values | Review source/model masking design |
OLS is defined in model roles. After publishing, assign users or supported groups to those roles in the Service. Workspace Admin, Member, and Contributor roles can edit the semantic model and are outside the OLS consumer boundary; OLS primarily applies to Viewers. Microsoft: OLS in Power BI · Microsoft: OLS restrictions
Plan the permissions
Identify protected tables and columns, then find reports, measures, and relationships that reference them.
Decide which objects each role may read. Keep permitted objects at Read and set protected objects to None.
Choose a supported authoring path. Microsoft documents TMDL view scripts and external tools such as Tabular Editor.
Review how users combine RLS and OLS roles. Combining them across different roles can cause a query to be rejected.
Hide a column with TMDL view
Open the semantic model's TMDL view and create a script. For a column, set metadataPermission to none under that column's permission within the table permission. For example, a CustomerSummary role can hide Address in Customers. To hide a whole table, set metadataPermission to none on that table permission. Use the exact role, table, and column names from the model.
Preview the script before applying it. Confirm that only intended objects are hidden, apply the changes, and publish the model. TMDL syntax and UI can change, so follow the current documentation for your authoring environment. Microsoft: configure OLS with TMDL
Use Tabular Editor
Prepare the model and roles in Desktop, then open the installed Tabular Editor from External tools.
Expand Table Permissions for the target role.
Set the protected table or column's Object-Level Security permission to None. Keep permitted objects at Read.
Save and publish the model.
In the Service, open the semantic model's More options > Security and assign users or supported groups to the role.
Tool menus and model support vary by version. After publication, role membership still needs to be assigned in the Service. Microsoft: configure OLS with Tabular Editor
Validate after publishing
Test with a read-only user in a protected role and a user in an allowed role. Check that protected fields disappear from metadata, visuals using hidden fields show an object-not-found style error, allowed users can still read permitted objects, and role combinations do not bypass or conflict with the intended boundary. Test Viewer accounts separately from workspace editors.
Visuals that reference secured objects may show an error similar to a deleted or missing object. Verify the actual permission result with representative accounts; no live tenant test is claimed here.
Limitations and troubleshooting
**A visual cannot find a field:** confirm that the role is meant to hide that field; adjust the allowed role or rebuild the visual using a permitted field.
**Table security breaks a relationship path:** inspect dependent relationships and queries, then redesign the model if needed.
**A measure or calculation disappears:** measures, KPIs, and DetailRows that reference secured objects can also be restricted; check indirect references.
**A role combination is rejected:** check whether the same user receives RLS and OLS through separate roles and redesign the role assignment.
**A feature is unsupported:** OLS models do not support some features, including Q&A, Quick insights, Smart narrative, and Excel Data Types gallery. Verify compatibility before deployment.
**An editor can see sensitive data:** OLS is for Viewer consumers. Minimize workspace edit permissions.
OLS is a model permission boundary, not a report-page formatting feature. Before deployment, verify both that protected objects are unreadable to the intended role and that allowed roles and reports still work.