Launch offer: 20% off every migration plan until 31 January 2027. See prices
//Mailbox Migration
8 min read
Exchange·Microsoft 365 Workloads

Mailbox Migration

Migrate email, calendars, and contacts across Microsoft 365 tenants using app-only Graph API authentication.

Mailbox Migration Guide

Migrate email, calendars, contacts, and mail rules from Exchange On-Premises or Exchange Online into Microsoft 365. This is the core workload for most tenant-to-tenant migrations.


Prerequisites

Confirm the following before you begin.

Source tenant

  • Global Administrator or Exchange Administrator role
  • Exchange Online Plan 1 or Plan 2 (or Exchange Server 2013 or later on-premises)
  • Autodiscover DNS records resolving correctly

Destination tenant

  • Global Administrator role
  • Microsoft 365 E3, E5, or Exchange Online Plan 1/2 licences assigned to target mailboxes
  • Target user accounts already provisioned (via Entra ID, AD Connect, or manual creation)

General

  • A mapping of source UPNs to destination UPNs (Aatrex can auto-generate this from display names)
  • Outbound HTTPS access to graph.microsoft.com from the Aatrex host

Step 1: Register an App in the Source Tenant

Aatrex reads source mailboxes using OAuth 2.0 app-only authentication — no user passwords are stored.

  1. Sign in to portal.azure.com as a Global Administrator on the source tenant.
  2. Go to Azure Active Directory → App registrations → New registration.
  3. Set the name to Aatrex Source and leave the redirect URI blank. Click Register.
  4. On the app overview page, copy the Application (client) ID and Directory (tenant) ID. You will paste these into Aatrex.
  5. Go to Certificates & secrets → New client secret. Choose an expiry of at least 12 months. Copy the Value immediately — it is only shown once.
  6. Go to API permissions → Add a permission → Microsoft Graph → Application permissions and add:
PermissionWhy it is needed
Mail.ReadRead all messages and folder structure
Calendars.ReadRead events, recurrences, and attendees
Contacts.ReadRead contacts and contact folders
MailboxSettings.ReadRead auto-reply and timezone configuration
User.Read.AllEnumerate mailboxes for discovery

Also add the Graph mailbox permissions MailboxItem.Export.All, MailboxItem.Read.All and MailboxFolder.Read.All. Aatrex reads each mailbox item through the Microsoft Graph mailbox API; no Exchange Online permission is needed.

  1. Click Grant admin consent for [your tenant] and confirm. Every row must show a green Granted checkmark before proceeding.

Step 2: Register an App in the Destination Tenant

  1. Sign in to portal.azure.com on the destination tenant.
  2. Go to Azure Active Directory → App registrations → New registration.
  3. Name it Aatrex Destination and click Register.
  4. Copy the Application (client) ID, Directory (tenant) ID, and generate a Client secret using the same steps above.
  5. Add the following Application permissions under Microsoft Graph:
PermissionWhy it is needed
Mail.ReadWriteWrite messages into destination mailboxes
Calendars.ReadWriteCreate events and meeting series
Contacts.ReadWriteCreate contacts in the destination
MailboxSettings.ReadWriteRestore auto-reply and language settings
User.Read.AllResolve destination UPNs during mapping

Also add the Graph mailbox permissions MailboxItem.ImportExport.All and MailboxFolder.ReadWrite.All. Aatrex writes each mailbox item through the Microsoft Graph mailbox API; no Exchange Online permission is needed.

  1. Click Grant admin consent and confirm all permissions are granted.

Step 3: Create a Migration Project

  1. In Aatrex, click Projects in the left sidebar.
  2. Click Create Project in the top-right corner.
  3. Choose Mailbox Migration as the migration type and click Next.
  4. Fill in the project details:
    • Project name — a label for your own reference, e.g. Phase 1 – Mailbox Migration
    • Source tenant domain — the primary domain of the source tenant
    • Destination tenant domain — the primary domain of the destination tenant
  5. On the Credentials step, paste the App ID, Tenant ID, and Client Secret for both source and destination apps.
  6. Click Test Connection to verify both connections succeed, then click Save Project.

Step 4: Discover Mailboxes

  1. Open your project. Click Scan in the command bar and select Discover Users.
  2. Aatrex calls the Microsoft Graph to enumerate all licensed mailboxes in the source tenant. Discovery typically completes in 1–5 minutes depending on tenant size.
  3. When finished, the user table populates. All users start with Status: Unmapped.

Tip: Use Scan → Import CSV to upload a pre-prepared source-to-destination UPN mapping file and skip the auto-map step.


Step 5: Map Users

Auto Map (recommended)

  1. Click Auto Map in the command bar. Aatrex matches mailboxes where the username portion (before @) is identical in both tenants.
  2. Review the results. Matched users show Status: Mapped. Unmatched users remain Unmapped.
  3. Click any unmapped user row and use the Destination UPN field in the right panel to assign the correct destination account. Click Save.

Manual mapping

Click any user row → edit the Destination UPN field → click Save Mapping.


Step 6: Start the Migration

  1. Select users using the checkboxes, or click Select All to choose all mapped users.
  2. Click Migrate in the command bar.
  3. Choose a migration mode:
    • Full — copies everything from the beginning of the mailbox history.
    • Date range — copies items received after a chosen date. Use this for delta passes before cutover.
  4. Optionally assign a Wave label (e.g. Wave 1 – Finance) to group this batch.
  5. Click Start Migration. Jobs enter the queue and begin processing within seconds.

Step 7: Monitor Progress

  • The Status column updates live: Queued → In Progress → Completed or Failed.
  • Click any user row to see a detailed Migration Log showing item counts, error messages, and last sync timestamp.
  • The Activity page (left sidebar) shows a full history of all events across all projects.
  • Use Pause, Resume, or Retry from the command bar to control running jobs.

Step 8: Post-Migration Verification

After migration completes, verify in the destination tenant:

  • Open a migrated mailbox in Outlook Web App and confirm the Inbox, Sent Items, and all custom folders are present with the expected mail.
  • Open Calendar and verify recurring meetings show the correct recurrence pattern and organiser details.
  • Open People and confirm contacts migrated correctly.
  • For delta migration runs: wait at least 24 hours after the final delta pass before MX record cutover to minimise mail loss.

Common Issues

Discovery returns 0 mailboxes Admin consent may not have been granted on User.Read.All. Re-grant consent in Azure AD and retry discovery.

Mailboxes showing Unmapped after Auto Map Source and destination UPNs differ — usually due to a domain rename or legal name change. Use the manual mapping panel or upload a CSV with explicit pairs.

Migration stuck in Queued The client secret may have expired. Regenerate it in Azure AD, update the project credentials, and requeue.

Items missing after migration Microsoft throttles Graph API writes for large mailboxes. Aatrex retries automatically, but mailboxes over 50 GB may need a second delta pass to pick up any throttled items.

PreviousTroubleshooting GuideNext Archive Mailbox Migration

Related articles