0 XP

App access: impersonation, app policies and add-in tokens

ApplicationImpersonation is retired

ApplicationImpersonation's removal began in 2024 (MC718754) and was complete on March 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.

RBAC for Applications replaces Application Access Policies

Application Access Policies are labelled legacy. Learn says new setups shouldn't use them because a deprecation will be announced, but no date has been published. They are limited to 300 apps per tenant, and changes can take more than an hour. Cmdlet: New-ApplicationAccessPolicy -AccessRight RestrictAccess or DenyAccess, with a mail-enabled security group as the scope.

RBAC for Applications is PowerShell-only:

  • New-ManagementScope (optional) for the resource scope.
  • New-ServicePrincipal, with the AppId and ObjectId taken from Enterprise applications, not App registrations.
  • New-ManagementRoleAssignment -App, with a role such as "Application Mail.Read" and -CustomResourceScope or -RecipientAdministrativeUnitScope.
  • Test-ServicePrincipalAuthorization to see InScope True or False. It bypasses the cache, which takes 30 minutes to 2 hours.

It allows up to 10,000 apps per organization.

The key trap: an app's access is the union of its Entra consent and its Exchange grants. An unscoped Mail.Read consent in Entra cancels the scope, so remove it. Exclusive scopes don't restrict apps. Autodiscover can't be reached with app roles, so an Application Access Policy is still the option there.

Legacy Exchange tokens and NAA

Legacy Exchange Online tokens for Outlook add-ins were off by default from February 17, 2025. Admins could re-enable them until June 2025 or get an exception until October 2025. In October 2025 they were turned off for every tenant, with no way back. Add-ins now use Nested App Authentication (NAA). Check the status with Get-AuthenticationPolicy -AllowLegacyExchangeTokens.

Traps

  • "Legacy" does not mean "retired": Application Access Policies still work.
  • A scope that leaks usually means an Entra consent is still in place.

Knowledge check

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

Loading…