Exchange hybrid deployments
Planning and deployment

Oauth Migration Endpoint

In brief

The guidance now limits supported environments to Microsoft 365 multi-tenant (WW) and on-premises Exchange Server SE from October 2026 onward or Exchange 2019 CU15 with the October 2026 security update. It also changes the optional claim to `xms_aud_guid` and adds endpoint testing and move-request examples.

What Exchange admins need to know

Administrators configuring this integration must use the updated platform prerequisites and optional claim, then validate the endpoint and ensure URI host values match the migration commands.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

The new OAuth method is available to:

  • Microsoft 365 multi-tenant (WW) environments only.
  • On-premises organizations running the latestOctober 2026 or newer version of Exchange Server Subscription Edition (SE) or Exchange Server 2019 CU 15CU15 with the latest ESU.
  • O365 commercial cloud organizations.Exchange Security Update (October 2026).

Prerequisites

Note

Using the **Application (client) ID** in the domain name portion of the URI is **optional but recommended**. The URI must be specific to the MRS proxy endpoint on-premises and using the ID ensures this. However, you can use any fully qualified name that's specific to the MRS proxy endpoint and part of a domain name that you registered for use in your Microsoft Entra ID tenant. When using the **Application (client) ID** you will need to create the corresponding DNS record for it and add it to the publicly trusted certificate as needed.
  1. Add an app role to your application. Select API permissions on the left-hand column. Select the three dots to the right of Microsoft Graph and choose Remove all permissions to leave direct permissions empty.

    Screenshot that shows Registered App, remove default API permissions.

}


Add the `xml_aud_guid``xms_aud_guid` property to `optionalClaims` shown below and then select **Save**.

```json
{
    $appId = "Application (client) ID"
    $role = "App role Value"

    # on premise API AppplicationApplication
    $app = Get-MgApplication –Filter "AppId eq '$appId'"
    $appRole = $app.AppRoles | ?{$_.Value -eq $role}


Now that the configuration is completed, you can create an Oauth endpoint that can be used in migration batches or in remote moves.

###1. Connect to Exchange Online PowerShell. Start PowerShell as administrator and [Connect to Exchange Online PowerShell](/en-us/powershell/exchange/connect-to-exchange-online-powershell).

    ```powershell
    Connect-ExchangeOnline
    ```
2. Create the migration endpointendpoint. Specify the `-UseOauth` parameter when you create the migration endpoint. The `-RemoteServer` parameter must match the host part of the **Application ID URI** in the on-premises API. For more optional configuration parameters, see [New-MigrationEndpoint](/en-us/powershell/module/exchangepowershell/new-migrationendpoint).

    Note

    If you used `https://[Application (client) ID].contoso.com/ews/mrsproxy.svc` in the **Application ID URI** configuration then `RemoteServer` value is `[Application (client) ID].contoso.com`.

    If you used a different URI, for example `https://mail.contoso.com/ews/mrsproxy.svc` then the value to use is `mail.contoso.com`

1. Connect to Exchange Online PowerShell: Start PowerShell as administrator and [Connect to Exchange Online PowerShell](/en-us/powershell/exchange/connect-to-exchange-online-powershell) by running the following command..

    ```powershell
    Connect-ExchangeOnline
  1. Create the migration endpoint. For more optional configuration parameters, see New-MigrationEndpoint.
$remoteServer$remoteServer = "mail.contoso.comApplication ID URI host value"
    New-MigrationEndpoint -UseOAuth -Name "OAuthEndpoint" -RemoteServer $remoteServer -ExchangeRemoteMove
    
  1. ``` 3. After you create the migration endpoint, run Test-MigrationServerAvailability`Test-MigrationServerAvailability`, which gets an OAuth token.


    ```powershell
    Test-MigrationServerAvailability -Endpoint "OAuthEndpoint"

    

Result : Success Message : This test only validates retrieving the OAuth token based on the endpoint configuration. It does not attempt to connect to the remote host. SupportsCutover : False ErrorDetail : StructuredResult : TestedEndpoint : OAuthEndpoint IsValid : True Identity : ObjectState : New ``` ### Create move requests or migration batches

Use the newnewly created migration endpoint to configure remote moves by using the New-MoveRequest`New-MoveRequest` cmdlet. The -RemoteHostName`-RemoteHostName` value must match the host path of the on-premises application URI as explained in the previous section. Also, specify -ArchiveDomain`-ArchiveDomain` to ensure the cmdlet resolves the correct parameter set. For more parameters, see New-MoveRequest.

$remoteServerset:

```powershell
$remoteServer = "mail.contoso.comApplication ID URI host value"
New-MoveRequest -Identity "[email protected]" -TargetDeliveryDomain [contoso.com] -SourceEndpoint "OAuthEndpoint" -RemoteHostName $remoteServer -Remote -TargetDeliveryDomain "contoso.com" -ArchiveDomain [contoso.com]"contoso.com"

Here is an example for an offboarding move:

$remoteServer = "Application ID URI host value"
New-MoveRequest -Identity "[email protected]" -SourceEndpoint "OAuthEndpoint" -Outbound -RemoteHostName $remoteServer -TargetDeliveryDomain "contoso.com" -RemoteTargetDatabase "your target database"

For more parameters, see New-MoveRequest.

For migration batch creation, treat the OAuth endpoint the same as any other endpoint type. For more parameters for offboarding, see New-MigrationBatch (ExchangePowerShell) | Microsoft Learn.. For more parameters for onboarding, see New-MigrationBatch.

New-Migrationbatch -Name MyBatch -SourceEndpoint "OAuthEndpoint"