UPN and default email

%3CLINGO-SUB%20id%3D%22lingo-sub-94769%22%20slang%3D%22en-US%22%3EUPN%20and%20default%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-94769%22%20slang%3D%22en-US%22%3E%3CP%3Ewe%20synched%20users%20via%20aad%20connect%20to%20office%20365%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Eupn%20si%20user%40contoso.com%3C%2FP%3E%3CP%3Esynched%20user%20in%20o365%20is%20user%40contoso.com%3C%2FP%3E%3CP%3Eassigned%20license%20to%20user%20but%20the%20default%20email%20is%20%3CSTRONG%3Euser%40contoso.onmicrosoft.com%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Ehow%20to%20change%20to%20user%40contoso.com%3F%3C%2FP%3E%3CP%3Ewe%20want%20to%20make%20%3CSTRONG%3Euser%40contoso.com%3C%2FSTRONG%3E%20as%20default%20mail%20upon%20synching%2C%20how%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20723px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18438iB3EE9C0F55FA5A17%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-94769%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-166970%22%20slang%3D%22en-US%22%3ERe%3A%20UPN%20and%20default%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-166970%22%20slang%3D%22en-US%22%3ESet-MsolUserPrincipalName%20-UserPrincipalName%20first.last%40yourdomain.onmicrosoft.com%20-NewUserPrincipalName%20first.last%40yourdomain.com%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-94864%22%20slang%3D%22en-US%22%3ERe%3A%20UPN%20and%20default%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-94864%22%20slang%3D%22en-US%22%3EYou%20could%20do%20this%20by%20PowerShell%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-94787%22%20slang%3D%22en-US%22%3ERe%3A%20UPN%20and%20default%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-94787%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Marvin%2C%20to%20use%20your%20own%20custom%20domain%20you%20may%20add%20it%20in%20your%20Active%20Directory%20under%20Active%20Directory%20Domains%20and%20Trusts%20and%20make%20sure%20that%20when%20you're%20creating%20a%20User%20in%20Active%20Directory%2C%20you%20select%20your%20own%20custom%20domain.%20Also%2C%20please%20check%20if%20your%20own%20custom%20domain%20is%20configured%20and%20verified%20in%20Azure%20AD.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-94772%22%20slang%3D%22en-US%22%3ERe%3A%20UPN%20and%20default%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-94772%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Marvin%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20UPN%20field%20doen't%20synchronise%20to%20email%20address%2C%20so%20it's%20creating%20the%20default%20SMTP.%20You'll%20need%20to%20set%20the%20Primary%20SMTP%20Address%20on-premises%2C%20then%20synchronise%20the%20objects%20across.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdd%20'SMTP%3A%20User%40contoso.com'%20to%20the%20'ProxyAddress'%20attribute%20in%20Active%20Directory.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-dk%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Super 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
Highlighted

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

Highlighted

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.

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