Why scope an assignment
A role says what an admin can do. A scope says which recipients they can do it to. A regional admin may hold Mail Recipients but should only touch the users in their region.
Scoping to an administrative unit
Exchange Online accepts Entra administrative units directly on a role assignment:
- New-ManagementRoleAssignment ... -RecipientAdministrativeUnitScope (the admin unit's object ID)
- Set-ManagementRoleAssignment ... -RecipientAdministrativeUnitScope (the admin unit's object ID)
Microsoft recommends this native parameter over building a management scope that points at the admin unit as an intermediary. The same parameter is used for RBAC for Applications.
The trap: pass the object ID, not the display name. In an MVP's testing written up in January 2023, the display name errored and the object ID worked. Quoting the display name still passes a name. List the scoped assignments with Get-ManagementRoleAssignment -RecipientWriteScope AdministrativeUnit.
Adding the regional admin to another role group, such as Help Desk, changes which roles they hold, not which recipients their assignment covers.
Custom management scopes
When the boundary is an attribute rather than an admin unit, define a scope with a recipient filter:
New-ManagementScope -Name "Canadian users" -RecipientRestrictionFilter "CustomAttribute1 -eq '012332'"
- -RecipientRestrictionFilter defines which recipients the scope covers.
- -CustomResourceScope on New-ManagementRoleAssignment points an assignment at a scope that already exists.
- -PolicyScopeGroupId is not a scope parameter; it belongs to the legacy New-ApplicationAccessPolicy.
Where to do it
Scoping assignments with admin units and custom scopes is done in Exchange Online PowerShell with the cmdlets above. Both scope types also work for app assignments, which the RBAC for Applications unit covers. Creating and editing these needs the Role Management role, which only Organization Management holds by default.