We strongly recommended that you add and verify your domain in the Office 365 portal or by using the Microsoft Online Services Module for Windows PowerShell�before you start and enable directory synchronization. �
Make sure that users are synchronized from the on-premises environment to Office 365 by using the same UPNs and email addresses. All domains that are associated with users' UPN, email addresses, and proxy addresses must be verified in your Office 365 subscription.
For example, if the on-premises UPN of a user is
user@contoso.com, and the user's default email address is
user@fabrikam.com, make sure that both the
contoso.com domain and the
fabrikam.com domain are verified.
Note the following scenarios:
- If the user does not yet have a license, and the domain is verified, the UPN is changed accordingly.
- If the user has a license, and the domain is verified, the following conditions occur:
- The UPN does not change for non-federated users.
- The UPN is changed for federated users.
- The default email addresses are changed accordingly.
- Alternative email addresses that use the verified domain are automatically added.
To update a non-federated user's UPN while they have a license, follow these steps:
- Connect to Microsoft Online Services PowerShell via Microsoft Online Services Module for Windows PowerShell
- Run the following PowerShell cmdlet:
Set-MsolUserPrincipalName -UserPrincipalName [CurrentUPN] -NewUserPrincipalName [NewUPN]