Споделяне чрез


Assign Exchange permissions to migrate mailboxes to Microsoft 365 or Office 365

When you migrate on-premises Exchange mailboxes to Microsoft 365 or Office 365, certain permissions to access and, in some cases, modify those mailboxes, are required. The user account used to connect to your on-premises Exchange organization during the migration needs those permissions. Known as the migration administrator, the user account is used to create a migration endpoint to your on-premises organization.

The migration administrator must have the necessary administrative privileges in your on-premises Exchange organization to successfully create a migration endpoint. Those same administrative privileges are required if the migration administrator wants to create a migration batch if your organization has no migration endpoints. The following list shows the administrative privileges required for the migration administrator account to migrate mailboxes to Microsoft 365 or Office 365 by using the different types of migration:

  • Staged Exchange migration

    For a staged migration, the migration administrator account must be:

    • A member of the Domain Admins group in Active Directory Domain Services (AD DS) in the on-premises organization.

      or

    • Assigned the FullAccess permission for each on-premises mailbox AND the WriteProperty permission to modify the TargetAddress property on the on-premises user account.

      or

    • Assigned the Receive As permission on the on-premises mailbox database that stores the user mailboxes AND the WriteProperty permission to modify the TargetAddress property for the on-premises user account.

  • Cutover Exchange migration

    For a cutover migration, the migration administrator account must be:

    • A member of the Domain Admins group in Active Directory Domain Services (AD DS) in the on-premises organization.

      or

    • Assigned the FullAccess permission for each on-premises mailbox.

      or

    • Assigned the Receive As permission on the on-premises mailbox database that stores the user mailboxes.

  • Remote move (Hybrid) Exchange migration

    For a remote move migration, the migration administrator account must be:

    • A member of the Domain Admins group in Active Directory Domain Services (AD DS) in the on-premises organization.

      or

    • A member of the Exchange Recipient Administrators group in Active Directory in the on-premises organization.

      or

    • A member of the Organization Management role group in Exchange 2010 or above.

  • Internet Message Access Protocol 4 (IMAP4) migration

    For an IMAP4 migration, the comma-separated value (.csv) file for the migration batch must contain:

    • The username and password for each mailbox that you want to migrate.

      or

    • The username and password for an account in your IMAP4 messaging system that has the necessary administrative privileges to access all user mailboxes. To learn whether your IMAP4 server supports this approach and how to enable it, see the documentation for your IMAP4 server.

You can use Exchange Online PowerShell in your on-premises organization to quickly assign the necessary permissions to migrate mailboxes to Microsoft 365 or Office 365.

Note

Because Exchange Server 2003 doesn't support Exchange Online PowerShell, you have to use Active Directory Users and Computers to assign the FullAccess permission and Exchange Server Manager to assign the Receive As permission.

For information about migrating mailboxes to Office 365 by using different migration types, see Ways to migrate multiple email accounts to Office 365.

What do you need to know before you begin?

  • Estimated time to complete each procedure: 2 minutes.

  • You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Permissions and delegation" entry in the "Recipient Provisioning Permissions" entry in the Feature permissions in Exchange Online topic.

Assign the FullAccess permission

The following examples show different ways to use the Exchange Online PowerShell Add-MailboxPermission cmdlet to assign the FullAccess permission to the migration administrator account for mailboxes in your on-premises organization.

Example 1

FullAccess permission to the mailbox of Terry Adams is assigned to the migration administrator account (for example, migadmin).

Add-MailboxPermission -Identity "Terry Adams" -User migadmin -AccessRights FullAccess -InheritanceType all

Example 2

FullAccess permission for all members of the distribution group MigrationBatch1 is assigned to the migration administrator account.

Get-DistributionGroupMember MigrationBatch1 | Add-MailboxPermission -User migadmin -AccessRights FullAccess -InheritanceType all

Example 3

FullAccess permission for all mailboxes that have the value of MigBatch2 for CustomAttribute10 is assigned to the migration administrator.

Get-Mailbox -ResultSize unlimited -Filter "CustomAttribute10 -eq 'MigBatch2'" | Add-MailboxPermission -User migadmin -AccessRights FullAccess -InheritanceType all

Example 4

FullAccess permission to all user mailboxes in the on-premises organization is assigned to the migration administrator account.

Get-Mailbox -ResultSize unlimited -Filter "RecipientTypeDetails -eq 'UserMailbox'" | Add-MailboxPermission -User migadmin -AccessRights FullAccess -InheritanceType all

For detailed syntax and parameter information, see the following topics:

How do you know the assignment of permission worked?

Run one of the following commands to verify you successfully assigned FullAccess permission to the migration administrator account in each example.

Get-MailboxPermission -Identity <mailbox> -User migadmin
Get-DistributionGroupMember MigrationBatch1 | Get-MailboxPermission -User migadmin
Get-Mailbox -ResultSize unlimited -Filter "CustomAttribute10 -eq 'MigBatch2'" | Get-MailboxPermission -User migadmin
Get-Mailbox -ResultSize unlimited -Filter "RecipientTypeDetails -eq 'UserMailbox'" | Get-MailboxPermission -User migadmin

Assign the Receive As permission

The following example shows how to use the Exchange Online PowerShell Add-ADPermission cmdlet to assign the Receive As permission to the migration administrator account for "Mailbox Database 1900992314."

Add-ADPermission -Identity "Mailbox Database 1900992314" -User migadmin -ExtendedRights receive-as

For detailed syntax and parameter information, see Add-ADPermission.

How do you know the assignment of permission worked?

Verify you successfully assigned ReceiveAs permission to the migration administrator account in the example. Run the following command.

Get-ADPermission -Identity "Mailbox Database 1900992314" -User migadmin

Assign the WriteProperty permission

The following examples show different ways to use the Exchange Online PowerShell Add-ADPermission cmdlet to assign the migration administrator account the WriteProperty permission to modify the TargetAddress property for on-premises user accounts. This capability is required to perform a staged Exchange migration if the migration administrator isn't a member of the Domain Admins group.

Example 1

WriteProperty permission to modify the TargetAddress property for the user account of Rainer Witte is assigned to the migration administrator account (for example, migadmin).

Add-ADPermission -Identity "Rainer Witte" -User migadmin -AccessRights WriteProperty -Properties TargetAddress

Example 2

WriteProperty permission to modify the TargetAddress property for all members of the distribution group StagedBatch1 is assigned to the migration administrator account.

Get-DistributionGroupMember StagedBatch1 | Add-ADPermission User migadmin -AccessRights WriteProperty -Properties TargetAddress

Example 3

WriteProperty permission to modify the TargetAddress property for all user accounts that have the value of StagedMigration for CustomAttribute15 is assigned to the migration administrator account.

Get-User -ResultSize unlimited -Filter "CustomAttribute15 -eq 'StagedMigration'" | Add-ADPermission -User migadmin -AccessRights WriteProperty -Properties TargetAddress

Example 4

WriteProperty permission to modify the TargetAddress property for user mailboxes in the on-premises organization is assigned to the migration administrator account.

Get-User -ResultSize unlimited -Filter "RecipientTypeDetails -eq 'UserMailbox'" | Add-ADPermission -User migadmin -AccessRights WriteProperty -Properties TargetAddress

For detailed syntax and parameter information, see the following topics:

How do you know the assignment of permission worked?

Verify you successfully assigned the WriteProperty permission to the administrator account, Run one of the following commands to confirm the permission was given to modify the TargetAddress property by using the command in each example.

Get-ADPermission -Identity <mailbox> -User migadmin
Get-DistributionGroupMember MigrationBatch1 | Get-ADPermission -User migadmin
Get-Mailbox -ResultSize unlimited -Filter "CustomAttribute15 -eq 'StagedMigration'" | Get-MailboxPermission -User migadmin
Get-Mailbox -ResultSize unlimited -Filter "RecipientTypeDetails -eq 'UserMailbox'" | Get-ADPermission -User migadmin