0 XP

RBAC for Applications

What it is

RBAC for Applications grants an app Exchange permissions with an optional resource scope: a management scope or an Entra admin unit. It replaces Application Access Policies. Application roles start or end with Application. They include Application Mail.Read, Mail.ReadBasic, Mail.ReadWrite, Mail.Send, Calendars and Contacts roles, Mail Full Access, Exchange Full Access, EWS.AccessAsApp for EWS, SMTP.SendAsApp for SMTP sending, and MailTips.ReadBasic.All. Supported protocols are Graph and EWS.

Setting it up needs Organization Management in Exchange or Exchange Administrator in Entra. It is PowerShell-based; the EAC has no page for it.

The steps

1. Optionally create a scope: New-ManagementScope -RecipientRestrictionFilter. 2. Create the service principal pointer: New-ServicePrincipal -AppId -ObjectId -DisplayName, with the IDs from Enterprise applications, not App registrations. 3. Assign the role: New-ManagementRoleAssignment -App (id) -Role "Application Mail.Read" -CustomResourceScope (scope), or -RecipientAdministrativeUnitScope (admin unit ID). 4. Test: Test-ServicePrincipalAuthorization -Identity (app) -Resource (mailbox) returns InScope True or False and bypasses the cache. Real changes take 30 minutes to 2 hours.

The consent trap

Permissions are the union of Entra consent and Exchange RBAC grants. If the app still holds an unscoped Mail.Read consent in Entra, it reads every mailbox no matter how tightly the Exchange assignment is scoped. Remove the Entra consent.

Limits

  • Apps cannot join role groups.
  • Application roles cannot be copied or derived.
  • Exclusive scopes do not restrict app access, whatever the protocol and however long you wait.
  • Autodiscover does not work with app roles.
  • At most 10,000 apps per organization.
  • Deleting a service principal in Entra removes its Exchange assignments.

Knowledge check

7 questions on what you just read. Each answer shows the full explanation and its source.

Loading…