Role verification
Verification means proving the negative cases
A role is ready only when approved users see required rows and prohibited users cannot retrieve disallowed rows through supported access paths. Record expected row IDs, visible count, totals, role membership, effective identity and permission level. A screenshot of a filtered visual is insufficient. Offline checks in this lab verify the policy and fixture, not Power BI enforcement.
Test in layers
In approved local Desktop, create the roles and use View as with a test identity. After publishing only to an authorized disposable workspace, assign approved test users to roles in model Security. Use Test as role where supported, then sign in as actual Viewer identities to test their effective grants, report, connected Excel and export behavior. Test as role is not supported for DirectQuery with SSO; use actual identities. Do not use a Contributor login as evidence of restricted viewer behavior. For external guests verify resolved UPN and group membership. Record model build, mode, role assignments, source identity and redacted results.
Example 1 — role membership matrix
The lab includes assigned-but-unmapped, no-role, North, North+South, DenyAll+North and elevated cases. Compare the exact row IDs with the expected matrix. Selecting West while authorized only for North gives no matching rows, even though removing the report filter can restore North rows. Two roles that overlap should not duplicate the sale. A no-role failure is different from a valid role returning an empty table. Verify entitlement table rows separately; multiple roles or unsecured dimensions can create unexpected visibility.
Example 2 — export and source tests
C01 can consume North; with Build and permitted export settings the underlying data is restricted to S01/S02. C02 has no Build in the lab, so its underlying export is blocked (summarized export is a separate feature). C09 has a separate source grant for West only: model RLS still permits North, but a direct source query returns S05/S06 (120) under the stipulated source policy. C10 has tenant export disabled, even with Build. Analyze in Excel, export and direct source must each be tested with actual approved identities and settings. Existing exported copies are independent artifacts; use classification and distribution controls.
Release gate and incident response
Check all fact tables, unknown keys, entitlement validity and role combinations. Use a negative control: temporarily remove the relationship only in an isolated offline or disposable model and predict the resulting exposure; do not publish that version. If unexpected rows appear, block release or revoke approved access through the owner, inspect effective roles and security paths, correct the model and repeat the matrix. Never weaken tenant or source policy to make a test succeed. Native performance and cross-mode behavior require separate tests.
Practice and documentation
Complete worksheet.md with expected rows, actual evidence or NOT RUN, and the appropriate owner for each failure. Explain why a successful Test as role screenshot alone cannot certify tenant security.
Documentation reviewed 2026-11-29 (page text or search extracts); native execution and installed build NOT RUN.
- https://learn.microsoft.com/en-us/fabric/security/service-admin-row-level-security
- https://learn.microsoft.com/en-us/power-bi/guidance/rls-guidance
- https://learn.microsoft.com/en-us/power-bi/connect-data/service-datasets-permissions
- https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-export-data
- https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-analyze-in-excel
- https://learn.microsoft.com/en-us/power-bi/connect-data/service-datasets-manage-access-permissions