0 XP

ApplicationImpersonation and Application Access Policies

ApplicationImpersonation is gone

ApplicationImpersonation was the EWS RBAC role that let an account act as any user. Retirement started in September 2024 under MC718754, targeted February 2025, and was complete as of Mar 13, 2025. The RIM-MailboxAdmins role group is now listed as Not used.

The replacement is app-only access with EWS.AccessAsApp, scoped with RBAC for Applications. EWS itself is on its way out in Exchange Online: tenants at the default switch to EWSEnabled = False on or after Oct 1, 2026, and EWS is permanently off from Apr 1, 2027, with Microsoft Graph as the replacement.

Application Access Policies are legacy

Application Access Policies were the older way to limit which mailboxes an app could reach:

  • New-ApplicationAccessPolicy -AppId ... -PolicyScopeGroupId (mail-enabled security group) -AccessRight RestrictAccess or DenyAccess
  • Test-ApplicationAccessPolicy to check one
  • Changes can take more than an hour, and the limit is 300 apps per tenant.

The Learn page is titled legacy. New access configuration should not use them, because a deprecation will be announced in the future. No deprecation date has been published, so do not quote one. RBAC for Applications replaces them, except that Autodiscover does not work with app roles, so Application Access Policies remain the option there.

Migrating an app

1. Create a scope with MemberOfGroup -eq and the group's distinguished name. 2. Create the service principal with New-ServicePrincipal. 3. Assign the scoped application role. 4. Remove the Entra consent. 5. Remove the Application Access Policy.

The trap in step one: MemberOfGroup counts only direct members, not members of nested groups. Microsoft 365 groups, mail-enabled security groups and distribution lists are all supported, but users who were in the old policy through a nested group drop out until you add them directly. Removing the old policy does not bring them back, and exclusive scopes do not help, because they do not restrict apps.

Knowledge check

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

Loading…