Beginning in v7.2.2, Metric Insights applies Power BI row-level security (RLS) to reports automatically when the connection uses Service Principal authentication. Each viewer sees only the rows their Power BI roles allow. RLS applies to viewing, image capture, and PDF, PowerPoint, and CSV exports.
When RLS context collection is enabled, Metric Insights:
- collects report RLS roles and members during metadata sync;
- looks up each viewer's roles at view time;
- applies the viewer's identity wherever the report renders.
RLS does not apply to raw data pulled from Power BI to build Datasets or Metrics. Collecting RLS-filtered raw data requires additional configuration, see Collect Row-Level-Filtered Data for details.
When one Power BI report is embedded for many partners or clients, each viewer sees only their own territory, account, or region. A single shared connection replaces separate connections or reports for each viewer.
NOTE: Automatic RLS applies to Power BI reports only. RLS is not applied automatically to embedded Power BI Dashboards. For a workaround, see Enable Row-Level Security (RLS) for Embedded Power BI Dashboard.
PREREQUISITES:
- The connection profile's Auth Type is Service Principal.
- The Service Principal has Tenant.Read.All permission, so Power BI's metadata scanning (scanner) APIs can read dataset roles and members.
- If you also need RLS-filtered raw data collection for Datasets or Metrics, not just report viewing and exports, a Remote Agent running Windows must be configured and selected, see Collect Row-Level-Filtered Data.
Table of Contents:
1. Turn On RLS Context Collection
Access Admin > Collection & Storage > Data Sources > Select a Microsoft Power BI Cloud Data Source with Service Principal auth type
- Access the Metadata tab.
- Activate Collect Row Level Security Context.
- [Save]
- Run [Sync Metadata] to collect the RLS role definitions and their members.
Why am I not seeing the setting? This toggle is hidden on a profile that collects its metadata through another connection profile; instead, you'll see a line naming that profile, and RLS is controlled there. If your profile shares its own metadata with other profiles, the toggle still appears here, since it's still collecting metadata on its own behalf.
NOTE: Turning the toggle off takes effect immediately and clears the cached per-viewer access for this profile and for any profile that collects its metadata through it. Turning the toggle on takes effect after the next metadata sync, once the roles and members have been collected.
2. Collect Row-Level-Filtered Data
Access the Advanced tab
NOTE:
- To enable RLS-filtered data collection, you must use OLE DB collection with a functioning Remote Agent. Without it, collected results will contain rows the viewer is not entitled to see.
- Activate Use Remote Agent, [+ New Remote Agent], select a configured Remote Agent, then [Save]
- Enable OLE DB: Collect Data from OLE DB
- [Save]
3. Limitations
Power BI lets a semantic model use two kinds of RLS roles, and Metric Insights supports both automatically:
- Static roles list specific people as members directly in Power BI and filter by a fixed value, such as one country per role. A viewer only gets that role's filtering if they're added as a member.
- Dynamic roles have no member list at all. Instead, they filter automatically by matching each viewer's own identity, so the role applies on its own to anyone whose identity fits, with nothing to set up per viewer in Power BI.
NOTES:
- Dynamic roles require admin-level Service Principal access (not just workspace access) and a role defined in Power BI to match the viewer's Metric Insights email address.
- If Metric Insights cannot confirm a report's RLS roles, it blocks the report for that viewer rather than showing unfiltered data.