Control access to datamarts
This article describes access control to datamarts, including row level security, rules in Power BI Desktop, and how datamarts might become inaccessible or unavailable.
How datamarts become unavailable
A datamart can get marked as an unavailable datamart when one of the following situations occurs.
Situation 1: When a Premium workspace is changed from Premium to non-premium, all datamarts in that workspace become unavailable. The Datamart editor becomes unavailable and downstream usage of the datamart and auto-generated datasets is blocked. Users or administrators must upgrade the workspace to its original Premium capacity to restore datamarts.
Situation 2: When dataflow updates a datamart and associated dataset, but due to a system lock the datamart or dataset update is pending, the datamart becomes unavailable. The Datamart editor isn't accessible when a datamart goes into unavailable state. The try again action, shown in the following image, enables users to trigger synchronization between dataflow, datamart and dataset. It may take a few minutes to complete the requested action but downstream consumption can be continued.
Row level security
Row-level security (RLS) can be used to restrict data access for specified users to a datamart. Filters restrict data access at the row level, and you can define filters within roles. In the Power BI service, members of a workspace have access to datamarts in the workspace, and RLS doesn't restrict such data access.
You can configure RLS for datamarts in the Datamart editor. The configured RLS on datamarts automatically gets applied to downstream items, including the auto-generated datasets and reports.
Define Row Level Security (RLS) roles and rules for Datamarts
To define RLS roles, take the following steps:
Open your datamart and select Manage Roles from the ribbon.
Create new RLS roles using the Row security settings window. You can define a combination of filters on tables and select Save to save the role.
Once the role is saved, select Assign to add users to the role. Once assigned, select Save to save the role assignments and close the RLS settings modal.
To validate the roles created, take the following steps:
Select the View as button from the ribbon.
Select the role to be validated by selecting the check box for the role, then select OK.
The data view shows the access that the selected role has.
To revert to your access, select the View as button on the ribbon again, and select None.
This article provided information about controlling access to datamarts.
The following articles provide more information about datamarts and Power BI:
- Introduction to datamarts
- Understand datamarts
- Get started with datamarts
- Analyzing datamarts
- Create reports with datamarts
- Datamart administration
For more information about dataflows and transforming data, see the following articles:
Submit and view feedback for