Implement object-level security by using Tabular Editor
This article explains how to secure tables and columns in a semantic model with object-level security (OLS), using Tabular Editor. It covers creating the role in Power BI Desktop, setting table and column permissions to None, assigning members in the Power BI Service, and the limitations of OLS.
What object-level security secures
You can create object-level security (OLS) using Tabular Editor. The “object” can be a table or a column.
The process has three stages:
- Create a role in Power BI Desktop.
- Secure the tables or columns in Tabular Editor.
- Publish the model, and assign members to the role in the Power BI Service.
Creating the role
First of all, create a role in the same way as you would for row-level security (RLS):
- Go to Modeling – Manage roles.
- Click Create.
- Define the roles as you would for RLS, but you don’t need to define any RLS rules.
Securing tables
Then go to Tabular Editor. If you are securing tables:
- In the model, go to Roles and click on the relevant role.
- In the properties, expand Security – Table Permissions.
- Change the table’s permission from Default to None.
Securing columns
If you are securing columns:
- Expand Tables – [Name of table] – [Name of column].
- In the properties, expand Object Level Security – [Name of role].
- Change it to None.
Exam tip
Remember where each setting is. To secure a table, select the role and use its Table Permissions. To secure a column, select the column and use its Object Level Security for each role.
Publishing and assigning members
When you have secured the tables or columns:
- Click Save in Tabular Editor.
- Go back to Power BI Desktop, and publish to the Power BI Service.
- In the Power BI Service, go to the semantic model, click …, then Security, and assign members to the roles.
Limitations of object-level security
Important
OLS does not apply to users with the Admin, Member or Contributor workspace roles.
- You cannot use OLS with any of the following visuals: Q&A, Quick Insights or Smart Narrative.
- You cannot secure a table which is in the middle of a relationship. For example, DimProductSubcategory, if this table links to both DimProductCategory and DimProduct. However, you could add an additional relationship between the two affected tables.
- You can use OLS for columns in a table which is part of a relationship, as long as the key column is not secured.
- You cannot use RLS using one role and OLS using another role. It could lead to unexpected access to secure data.
- Calculations (such as measures) do not work if they refer to a secured table or column.
Other ways to secure objects
Row-level, column-level and object-level security using T-SQL, and folder and file-level access using OneLake data access roles, are the same as for the DP-700 exam, and are covered in the DP-700 study guide article Implement row-level, column-level, object-level, and folder/file-level access controls.
Continue studying DP-600
This article covers Implement object-level security by using Tabular Editor, part of the Implement security and governance section of the DP-600 study guide.