Sub topic 3
Assigning Users and Groups to Roles in the Service
Assume you have created and tested RLS roles in Power BI Desktop, published the semantic model, and have a Power BI workspace connected to Microsoft Entra ID.
Assigning Users and Groups to Roles in the Service
In the Power BI service:
- Open the workspace that contains the semantic model.
- Select the semantic model's More options (...) > Security.
- Select a role.
- Add individual users, security groups, or distribution groups.
- Save the assignment.
Assign groups instead of maintaining a long list of individual users. Manage membership in Microsoft Entra ID so changes do not require editing the semantic model's roles.
Workspace Roles That Bypass RLS
RLS applies to users who consume the model as viewers. Workspace Admins, Members, and Contributors have edit permissions, so RLS does not restrict their access to the model. Assigning a user to a workspace role can therefore expose more data than assigning that user only to a semantic model role.
Use app audiences or viewer access for report consumers. Give edit-capable workspace roles only to people who need them.
When a User Belongs to Several Roles
Power BI combines role filters additively. In practice, a user in a role for West and a role for East can see both West and East. Membership does not create an intersection that narrows access.
Design roles with this union behavior in mind. Avoid assigning overlapping roles unless the broader result is intended.
What RLS Does Not Cover
RLS filters rows in the semantic model. It does not automatically protect:
- Data that users can access directly in the source system.
- Model metadata, such as table and column names.
- Content exposed through another unprotected model or report.
- Users with workspace permissions that bypass RLS.
Troubleshooting Common Problems
If a report is empty, verify the user is assigned to the correct role, the signed-in UPN matches the security table, and relationships propagate the filter to the fact table. If too many rows appear, check workspace roles, role overlap, relationship direction, and mapping-table values. Use Test as role in the service after publishing, then compare the result with View as in Desktop.
Exercise
A user assigned to both West and East roles sees both regions. Is this expected?
Show answer
Yes. RLS role filters combine additively, so the user receives the union of both roles' access.