Cross Tenant Migration Trust Setup
Cross Tenant Migration Trust Setup
During mergers or divestitures, you might need the ability to move your users' Exchange
Online mailboxes into a new tenant. Cross-tenant mailbox migration allows tenant
administrators to use well-known interfaces like Exchange Online PowerShell and MRS to
transition users to their new organization.
Administrators can use the New-MigrationBatch cmdlet, available through the Move
Mailboxes management role, to execute cross-tenant moves.
Users migrating must be present in the target tenant Exchange Online system as a
MailUser, marked with specific attributes to enable the cross-tenant moves. The system will
fail to move users that aren't properly set up in the target tenant.
After the moves are complete, the source user mailbox is converted to a MailUser and the
targetAddress (shown as ExternalEmailAddress in Exchange) is stamped with the routing
address to the destination tenant. This process leaves the legacy MailUser in the source
tenant and allows for coexistence and mail routing. When business processes allow, the
source tenant may remove the source MailUser or convert them to a mail contact.
Cross-tenant Exchange mailbox migrations are supported for tenants in hybrid or cloud
only, or any combination of the two.
This article describes the process for cross-tenant mailbox moves and provides guidance
on how to prepare source and target tenants for the Exchange Online mailbox content
moves.
) Important
Mailboxes that are on any type of hold will not be migrated and the move for that
mailbox will be blocked.
When a mailbox is migrated cross-tenant with this feature, only user visible content in the
mailbox (email, contacts, calendar, tasks, and notes) is migrated to the target (destination
tenant). After successful migration, the source mailbox is deleted. This means that after
migration, under no circumstances is the source mailbox available, discoverable, or
accessible in the source tenant.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 1/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
7 Note
If you are interested in previewing our new feature Domain Sharing for email
alongside your cross-tenant mailbox migrations, please complete the form at
aka.ms/domainsharingpreview . Domain sharing for email enables users in separate
Microsoft 365 tenants to send and receive email using addresses from the same
custom domain. The feature is intended to solve scenarios where users in separate
tenants need to represent a common corporate brand in their email addresses. The
current preview supports sharing domains indefinitely and shared domains during
cross-tenant mailbox migration coexistence.
Licensing
) Important
As of Nov. 2022, Cross Tenant User Data Migration is available as an add-on to the
following Microsoft 365 subscription plans for Enterprise Agreement customers, and is
required for cross-tenant migrations. User licenses are per migration (one-time fee)
and can be assigned either on the source or target user object. This license also covers
OneDrive for Business migration. Contact your Microsoft account team for details.
The Cross Tenant User Data Migration add-on is available as a separate purchase for
Microsoft 365 Business Basic, Standard, and Premium; Microsoft 365 F1/F3/E3/E5/;
Office 365 F3/E1/E3/E5; Exchange Online; SharePoint Online; and OneDrive for
Business.
2 Warning
You must have purchased, or verified that you can purchase, cross tenant user data
migration licenses prior to the next steps. Migrations fail if this step has not been
completed. Microsoft does not offer exceptions for this licensing requirement.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 2/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
Additionally, at least one mail-enabled security group in the source tenant is required.
These groups are used to scope the list of mailboxes that can move from source tenant (or
sometimes referred to as resource) to the target tenant. This allows the source tenant
admin to restrict or scope the specific set of mailboxes that need to be moved, preventing
unintended users from being migrated. Nested groups aren't supported.
You'll also need to communicate with your trusted partner company (with whom you will
be moving mailboxes) to obtain their Microsoft 365 tenant ID. This tenant ID is used in the
Organization Relationship DomainName field.
To obtain the tenant ID of a subscription, sign in to the Microsoft 365 admin center and
go to
https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Prope
rties . Select the copy icon for the Tenant ID property to copy it to the clipboard.
All users in both the source and target organizations must be licensed with the appropriate
Exchange Online subscriptions. Also, make sure to apply Cross Tenant User Data Migration
licenses to all users that will be migrated to the target side.
7 Note
You must configure the target (destination) first. To complete these steps, you are not
required to have or know the tenant admin credentials for both source and target
tenant. Steps can be performed individually for each tenant by different
administrators.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 3/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 4/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 5/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
On the top-right corner of the page, you'll see a notification pop-up that states the
app was successfully created.
6. Go back to the Home page, go to Azure Active Directory, and then select App
registrations.
7. Under Owned applications, find the app you created, and then select it.
8. Under Essentials, copy the Application (client) ID. You'll need it later to create a URL
for the target tenant.
9. In the navigation pane, select API permissions to view permissions assigned to your
app.
10. By default, User.Read permissions are assigned to the app you created, but aren't
required for mailbox migrations. You can remove that permission.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 6/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
12. In the Request API permissions window, select APIs my organization uses, search for
Office 365 Exchange Online , and then select it.
14. Under Select permissions, expand Mailbox, and check Mailbox.Migration, and then
select Add permissions at the bottom on the screen.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 7/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
15. Now select Certificates & secrets in the navigation pane for your application.
17. In the Add a client secret window, type a description, and then configure your
expiration settings.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 8/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
7 Note
Now that you've successfully created the migration application and secret, the next steps is
to consent to the application. To consent to the application:
1. Go back to the Azure Active Directory landing page, select Enterprise applications in
the navigation pane, find your migration app you created, select it, and then select
Permissions.
4. You can go back to your portal window and select Refresh to confirm your
acceptance.
5. Formulate the URL to send to your trusted partner (source tenant admin) so they can
also accept the application to enable mailbox migration. Here's an example of the
URL to provide to them you'll need the application ID of the app you created:
https://login.microsoftonline.com/contoso.onmicrosoft.com/adminconsent?
client_id=
[application_id_of_the_app_you_just_created]&redirect_uri=https://office.com
7 Note
You will need the application ID of the mailbox migration app you just created.
You will need to replace contoso.onmicrosoft.com in the above example with
your source tenants correct onmicrosoft.com name. You will also need to replace
[application_id_of_the_app_you_just_created] with the application ID of the
mailbox migration app you just created.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 9/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
7 Note
You will need the application ID of the mailbox migration app you just created
and the password (secret) you configured during this process. Depending on the
Microsoft 365 cloud instance you use, your endpoint may be different. See to the
Microsoft 365 endpoints page, select the correct instance for your tenant, and
then review the Exchange Online Optimize/Required address, and replace as
appropriate.
PowerShell
3. Create a new or edit your existing organization relationship object to your source
tenant.
PowerShell
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 10/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
https://login.microsoftonline.com/contoso.onmicrosoft.com/adminconsent?
client_id=
[application_id_of_the_app_you_just_created]&redirect_uri=https://office.com
7 Note
You will need the application ID of the mailbox migration app you just created.
You will need to replace contoso.onmicrosoft.com in the previous example with
your source tenant's onmicrosoft.com URL. You will also need to replace
[application_id_of_the_app_you_just_created] with the application ID of the
mailbox migration app you just created.
2. Accept the application when the pop-up appears. You can also log into your Azure
Active Directory portal and find the application under Enterprise applications.
PowerShell
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 11/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
7 Note
The tenant ID that you enter as the $sourceTenantId and $targetTenantId is the GUID
and not the tenant domain name. For an example of a tenant ID and information
about finding your tenant ID, see Find your Microsoft 365 tenant ID.
Tip
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 12/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
For any mailbox moving from a source organization, you must provision a MailUser object
in the Target organization:
1. The Target MailUser must have these attributes from the source mailbox or assigned
with the new User object:
a. ExchangeGUID (direct flow from source to target): The mailbox GUID must match.
The move process won't proceed if this isn't present on target object.
b. ArchiveGUID (direct flow from source to target): The archive GUID must match. The
move process won't proceed if this isn't present on the target object. (This is only
required if the source mailbox is Archive enabled).
d. UserPrincipalName: UPN will align to the user's NEW identity or target company
(for example, [email protected]).
e. Primary SMTPAddress: Primary SMTP address will align to the user's NEW company
(for example, [email protected]).
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 13/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
g. You can't add legacy smtp proxy addresses from source mailbox to target
MailUser. For example, you can't maintain contoso.com on the MEU in
northwindtraders.onmicrosoft.com tenant objects). Domains are associated with
one Azure AD or Exchange Online tenant only.
Attribute Value
Alias LaraN
RecipientType MailUser
RecipientTypeDetails MailUser
UserPrincipalName [email protected]
PrimarySmtpAddress [email protected]
ExternalEmailAddress SMTP:[email protected]
ExchangeGuid 1ec059c7-8396-4d0b-af4e-d6bd4c12a8d8
smtp:[email protected]
SMTP:[email protected]
Attribute Value
Alias LaraN
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 14/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
Attribute
RecipientType Value
UserMailbox
RecipientTypeDetails UserMailbox
UserPrincipalName [email protected]
PrimarySmtpAddress [email protected]
ExchangeGuid 1ec059c7-8396-4d0b-af4e-d6bd4c12a8d8
EmailAddresses smtp:[email protected]
SMTP:[email protected]
1. Other attributes may be included in Exchange hybrid write-back already. If not, they
should be included.
a. msExchBlockedSendersHash – Writes back online safe and blocked sender data
from clients to on-premises Active Directory.
b. msExchSafeRecipientsHash – Writes back online safe and blocked sender data from
clients to on-premises Active Directory.
c. msExchSafeSendersHash – Writes back online safe and blocked sender data from
clients to on-premises Active Directory.
Users in the target organization must be licensed with appropriate Exchange Online
subscriptions applicable for the organization. You may apply a license in advance of a
mailbox move but ONLY once the target MailUser is properly set up with ExchangeGUID
and proxy addresses. Applying a license before the ExchangeGUID is applied will result in a
new mailbox provisioned in target organization. You must also apply a Cross Tenant User
Data Migration license, or you may see a transient error reading "needs approval", which
will report a warning in the move report that a license hasn't been applied to the target
user.
7 Note
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 15/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
When you apply a license on a Mailbox or MailUser object, all SMTP type
proxyAddresses are scrubbed to ensure only verified domains are included in the
Exchange EmailAddresses array.
1. You must ensure that the target MailUser has no previous ExchangeGuid that doesn't
match the Source ExchangeGuid. This might occur if the target MEU was previously
licensed for Exchange Online and provisioned a mailbox. If the target MailUser was
previously licensed for or had an ExchangeGuid that doesn't match the Source
ExchangeGuid, you need to perform a cleanup of the cloud MEU. For these cloud
MEUs, you can run Set-User <identity> -PermanentlyClearPreviousMailboxInfo .
U Caution
PowerShell
Here's an example:
PowerShell
PowerShell
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 16/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
Here's an example:
PowerShell
PowerShell
PowerShell
7 Note
The email address in the CSV file must be the one specified in the target tenant (for
example, [email protected]), not the one in the source
tenant. For more information on the cmdlet click here For some example CSV file
info click here
csv
EmailAddress
[email protected]
[email protected]
[email protected]
Migration batch submission is also supported from the new Exchange admin center
when selecting the cross-tenant option.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 18/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
PowerShell
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 19/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
How can I see just moves that are cross-tenant moves, not
my onboarding and off-boarding moves?
Use the Flags parameter:
PowerShell
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 20/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
7 Note
PowerShell
# This will export users from the source tenant with the CustomAttribute1 =
"Cross-Tenant-Project"
# These are the 'target' users to be moved to the northwindtraders tenant
$outFileUsers = "$home\desktop\UsersToMigrate.txt"
$outFileUsersXML = "$home\desktop\UsersToMigrate.xml"
Get-Mailbox -Filter "CustomAttribute1 -like 'Cross-Tenant-Project'" -
ResultSize Unlimited | Select-Object -ExpandProperty Alias | Out-File
$outFileUsers
$mailboxes = Get-Content $outFileUsers
$mailboxes | ForEach-Object {Get-Mailbox $_} | Select-Object
PrimarySMTPAddress,Alias,SamAccountName,FirstName,LastName,DisplayName,Name,Ex
changeGuid,ArchiveGuid,LegacyExchangeDn,EmailAddresses | Export-Clixml
$outFileUsersXML
PowerShell
# Copy the file $outfile to the desktop of the target on-premises then run the
below to create MEU in Target
$symbols = '!@#$%^&*'.ToCharArray()
$characterList = @([char[]]([char]'a'..[char]'z'), [char[]]([char]'A'..
[char]'Z'), [char[]]([char]'0'..[char]'9') + $symbols)
function GeneratePassword {
param(
[ValidateRange(12, 256)]
[int]
$length = 16
)
do {
$password = -join (0..$length | ForEach-Object { $characterList | Get-
Random })
[int]$hasLowerChar = $password -cmatch '[a-z]'
[int]$hasUpperChar = $password -cmatch '[A-Z]'
[int]$hasDigit = $password -match '[0-9]'
[int]$hasSymbol = $password.IndexOfAny($symbols) -ne -1
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 21/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
# Now synchronize the changes from On-Premises to Azure and Exchange Online in
the target tenant
# This action should create the target mail enabled users (MEUs) in the Target
tenant
Start-ADSyncSyncCycle
For this initial deployment, users will need to rebuild their profile with their new UPN,
primary SMTP address and resync OST content.
7 Note
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 22/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
Plan accordingly as you batch your users for completion. You need to account for
network utilization and capacity when Outlook client profiles are created and
subsequent OST and OAB files are downloaded to clients.
The first role is for a one-time setup task that establishes the authorization of moving
content into or out of your tenant/organizational boundary. As moving data out of
your organizational control is a critical concern for all companies, we opted for the
highest assigned role of Organization Administrator. This role must alter or set up a
new OrganizationRelationship that defines the -MailboxMoveCapability with the
remote organization. Only the Organization Admin can alter the
MailboxMoveCapability setting, while other attributes on the
OrganizationRelationship can be managed by the Federated Sharing administrator.
The role of executing the actual move commands can be delegated to a lower-level
function. The role of Move Mailboxes is assigned to the capability of moving
mailboxes in or out of the organization.
incoming mail from source tenant to mailboxes in target tenant. Transport rules, security
and compliance features will run as configured in each tenant that the mail flows through.
So, for inbound mail, features like anti-spam, anti-malware, quarantine, and transport rules
and journaling rules will run in the source tenant first, then in the target tenant.
Here's an example of the output of the mailbox permission before a move from the source
side:
PowerShell
User AccessRights
IsInherited Deny
---- ------------
----------- ----
NT AUTHORITY\SELF {FullAccess, ReadPermission}
False False
[email protected] {FullAccess}
False False
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 24/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
Here's an example of the output of the mailbox permission after the move from the target
side:
PowerShell
User AccessRights
IsInherited Deny
---- ------------
----------- ----
NT AUTHORITY\SELF {FullAccess, ReadPermission}
False False
[email protected] {FullAccess}
False False
7 Note
Cross-tenant mailbox and calendar permissions are not supported. You must organize
principals and delegates into consolidated move batches so that these connected
mailboxes are transitioned at the same time from the source tenant.
Example:
PowerShell
so, the x500 email address to be added to target MailUser object would be:
x500:/o=First Organization/ou=Exchange Administrative Group
(FYDIBOHF23SPDLT)/cn=Recipients/cn=d11ec1a2cacd4f81858c81907273f1f9-Lara
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 25/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
7 Note
In addition to this X500 proxy, you will need to copy all X500 proxies from the mailbox
in the source to the mailbox in the target.
Can the source and target tenants utilize the same domain
name?
No, the source tenant and target tenant domain names must be unique; for example, a
source domain of contoso.com and the target domain of northwindtraders.com.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 26/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
are based on a data analysis of previous customer migrations. Because every environment
is unique, your exact migration velocity may vary.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 27/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
Preprovisioning the user's accounts with the script provided in this article shouldn't
be done. Instead, a selective OU sync of the users in scope for the migration can be
performed to populate the target tenant. You'll receive a warning about the UPN not
matching during Azure AD Connect configuration.
Depending on your current state of hybrid Exchange, you need to verify that the on-
premises directory objects have the required attributes (such as msExchMailboxGUID
and proxyAddresses) populated correctly before attempting to sync to another tenant
or you'll run into issues with double mailboxes and migration failures.
You need to take some extra steps to manage UPN transitioning, changing it on-
premises once the migration has been completed for a user unless you're also
moving the custom domain during a cut-over migration.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 28/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
mailbox migration will work. We support moving users that have no more than 12
auxiliary archive mailboxes. Additionally, users with large primary, large main archive,
and large auxiliary archive mailboxes will require extra time to synchronize and should
be submitted well in advance of the cutover date. Also note that if the source mailbox
is expanded during the mailbox migration process, the migration will fail as a new
auxiliary archive will be created in the source, but not in the target. In this case, you'll
need to remove the user from the batch and resubmit them.
Known issues
Post-migration Teams functionality in the source tenant will be limited. After the
mailbox is migrated to the target tenant, Teams in the source tenant will no longer
have access to the user's mailbox. If a user logs into Teams with the source tenant
credential, there will be a loss of functionality such as the inability to update their
profile picture, no calendar application, and an inability to search and join public
teams.
Cloud MailUsers with non-owned smtp proxyAddress will block MRS moves. When
creating target tenant MailUser objects, you must ensure that all SMTP proxy
addresses belong to the target tenant organization. If an SMTP proxyAddress exists
on the target mail user that doesn't belong to the local tenant, the conversion of the
MailUser to a mailbox is prevented. This is due to our assurance that mailbox objects
can only send mail from domains for which the tenant is authoritative (domains
claimed by the tenant).
If you synchronize users from on-premises using Azure AD Connect in the target
tenant, then you can provision on-premises MailUser objects with
ExternalEmailAddress pointing to the source tenant where the mailbox exists
([email protected]) and you stamp the PrimarySMTPAddress as a
domain that resides in the target tenant ([email protected]).
These values synchronize down to the tenant and an appropriate mail user is
provisioned and ready for migration. An example object is shown here.
PowerShell
ExternalEmailAddress EmailAddresses
-------------------- --------------
SMTP:[email protected] {SMTP:[email protected]}
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 29/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
7 Note
MailUser objects with "external" primary SMTP addresses are modified / reset to
"internal" company claimed domains
MailUser objects are pointers to non-local mailboxes. In the case for cross-tenant
mailbox migrations, we use MailUser objects to represent either the source mailbox
(from the target organization's perspective) or target mailbox (from the source
organization's perspective). The MailUsers will have an ExternalEmailAddress
(targetAddress) that points to the smtp address of the actual mailbox
([email protected]) and primarySMTP address that
represents the displayed SMTP address of the mailbox user in the directory. Some
organizations choose to display the primary SMTP address as an external SMTP
address, not as an address owned/verified by the local tenant (such as
northwindtraders.com rather than as contoso.com). However, once an Exchange
service plan object is applied to the MailUser via licensing operations, the primary
SMTP address is modified to show as a domain verified by the local organization
(contoso.com). There are two potential reasons:
When any Exchange service plan is applied to a MailUser, the Azure AD process
starts to enforce proxy scrubbing to ensure that the local organization isn't able to
send out mail, spoof, or mail from another tenant. Any SMTP address on a
recipient object with these service plans will be removed if the address isn't verified
by the local organization. As is the case in the example, the northwindtraders.com
domain is not verified by the contoso.onmicrosoft.com tenant, so the scrubbing
removes that northwindtraders.com domain. If you wish to persist these external
domains on MailUser, either before the migration or after migration, you need to
alter your migration processes to strip licenses after the move completes or before
the move to ensure that the users have the expected external branding applied.
You'll need to ensure that the mailbox object is properly licensed to not affect mail
service.
An example script to remove the service plans on a MailUser in the
contoso.onmicrosoft.com tenant is shown here.
PowerShell
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 30/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
PowerShell
ServicePlan ProvisioningStatus
----------- ------------------
ATP_ENTERPRISE PendingProvisioning
MICROSOFT_SEARCH PendingProvisioning
INTUNE_O365 PendingActivation
PAM_ENTERPRISE Disabled
EXCHANGE_ANALYTICS Disabled
EQUIVIO_ANALYTICS Disabled
THREAT_INTELLIGENCE Disabled
LOCKBOX_ENTERPRISE Disabled
PREMIUM_ENCRYPTION Disabled
EXCHANGE_S_ENTERPRISE Disabled
INFORMATION_BARRIERS Disabled
MYANALYTICS_P2 Disabled
MIP_S_CLP1 Disabled
MIP_S_CLP2 Disabled
ADALLOM_S_O365 PendingInput
RMS_S_ENTERPRISE Success
YAMMER_ENTERPRISE Success
PROJECTWORKMANAGEMENT Success
BI_AZURE_P2 Success
WHITEBOARD_PLAN3 Success
SHAREPOINTENTERPRISE Success
SHAREPOINTWAC Success
KAIZALA_STANDALONE Success
OFFICESUBSCRIPTION Success
MCOSTANDARD Success
Deskless Success
STREAM_O365_E5 Success
FLOW_O365_P3 Success
POWERAPPS_O365_P3 Success
TEAMS1 Success
MCOEV Success
MCOMEETADV Success
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 31/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
BPOS_S_TODO_3 Success
FORMS_PLAN_E5 Success
SWAY Success
Here's an example:
PowerShell
Below is the full set of current service plans that include Exchange Online:
Name
Customer Lockbox
Exchange Essentials
Exchange Foundation
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 32/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
Name
Information Barriers
Insights by MyAnalytics
Microsoft Bookings
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 33/34
8/10/23, 9:45 AM Cross-tenant mailbox migration - Microsoft 365 Enterprise | Microsoft Learn
Name
https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide 34/34