UPN and default email

Steel Contributor

we synched users via aad connect to office 365


upn si user@contoso.com

synched user in o365 is user@contoso.com

assigned license to user but the default email is user@contoso.onmicrosoft.com

how to change to user@contoso.com?

we want to make user@contoso.com as default mail upon synching, how?

Capture.PNG

 

 

thanks

4 Replies

Hi Marvin,

 

The UPN field doen't synchronise to email address, so it's creating the default SMTP. You'll need to set the Primary SMTP Address on-premises, then synchronise the objects across.

 

Add 'SMTP: User@contoso.com' to the 'ProxyAddress' attribute in Active Directory.

 

-dk

Hi Marvin, to use your own custom domain you may add it in your Active Directory under Active Directory Domains and Trusts and make sure that when you're creating a User in Active Directory, you select your own custom domain. Also, please check if your own custom domain is configured and verified in Azure AD.

You could do this by PowerShell
Set-MsolUserPrincipalName -UserPrincipalName first.last@yourdomain.onmicrosoft.com -NewUserPrincipalName first.last@yourdomain.com