New Users email is different when syncing to Azure.
I added a new user in active directory and list ******@xyz.com in the general tab. A few minutes later, AD Connect Sync did it work but the user has a ******@xyz.onmicrosoft.com email address. I can't change it in Azure because it is synced with an on-premise DC.
I have tried removing the user from AD, waiting until in syncs, and readding him but the same thing happens.
Any help would be appreciated.
Thank You,
-
Deleted
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Sign in to comment
2 answers
-
Steven Nguyen (WICLOUD CORPORATION) 85 Reputation points • Microsoft External Staff • Moderator
Hi Randy Haley,
Based on my analysis, this behavior is expected in a hybrid Active Directory environment
When a user is synchronized via Microsoft Entra Connect, the cloud identity is determined primarily by the following on-premises attributes:
- userPrincipalName (UPN)
- proxyAddresses
The E-mail field in the General tab primarily serves as a display attribute. It does not dictate the cloud identity or the primary SMTP routing address.
If the user’s UPN suffix:
- Does not match a verified domain in Entra ID, or
- Is a non-routable domain (such as .local)
In such cases, Entra ID automatically falls back to the tenant’s default domain (e.g., *.onmicrosoft.com), which explains why the user appears with this address after synchronization.
============================
Recommended Resolution
Please follow the steps below on your on-premises Active Directory:
1. Verify the custom domain in Entra ID
- Ensure that xyz.com has been successfully added and verified in your Entra tenant.
2. Update the UserPrincipalName (UPN) on-premises AD
- Open Active Directory Users and Computers (ADUC).
- Go to the Account tab of the user.
- Change the UPN suffix from the drop-down menu to match your verified domain: ******@xyz.com.
3. Update the Primary Routing Address
- Navigate to the Attribute Editor tab for the same user. (Note: Enable 'Advanced Features' in the ADUC View menu if this tab is hidden).
- Locate and edit the proxyAddresses attribute.
- Add the following value (ensure "SMTP" is capitalized to designate it as the primary address):
- SMTP:****@xyz.com**
- Trigger a synchronization cycle
- Run the following command in PowerShell on your Entra Connect server to force an immediate update:
- Start-ADSyncSyncCycle -PolicyType Delta
After the sync cycle completes, the user’s UPN and primary email address in Entra ID will be updated correctly.
- For your reference: [Microsoft Entra UserPrincipalName population - Microsoft Entra ID | Microsoft Learn](https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/plan-connect-userprincipalname#:~:text=Nonverified%20UPN%20Suffix,suffix%20(%3CMailNickName%3E%40%3Cinitial%20domain%3E.)
============================
If this helps resolve your problem, please consider hitting "Accept Answer" so other users facing this failure can easily find the solution!
-
AI answer
Because the user is synchronized from on-premises Active Directory, the primary SMTP address in Exchange Online is being generated from directory attributes, not from what is typed only on the General tab.
For synced users, Exchange Online email addresses are populated from these on-premises attributes (in priority order):
-
proxyAddresses -
mail -
userPrincipalName
If none of these contain
******@xyz.comwhen the object first syncs, Exchange Online creates and uses the default MOERA address******@xyz.onmicrosoft.comas the primary SMTP.To have the user show
******@xyz.comas the primary email address:- In on-premises Active Directory, open the user in Active Directory Users and Computers.
- Make sure the user’s
userPrincipalNamesuffix is@xyz.com(a verified domain in Microsoft 365). - Populate one of the supported attributes with the desired SMTP address:
- Preferably set
proxyAddressesso it contains:-
SMTP:******@xyz.com(note the uppercaseSMTP:for the primary address) - Optionally
smtp:******@xyz.onmicrosoft.comas a secondary address.
-
- If
proxyAddressesis not used, set themailattribute to******@xyz.com.
- Preferably set
- Run or wait for Azure AD Connect synchronization.
After sync, Exchange Online will set
******@xyz.comas the primary SMTP and keep******@xyz.onmicrosoft.comas a secondary MOERA address. The MOERA (******@xyz.onmicrosoft.com) cannot be removed or changed, but it can be overridden as the primary SMTP by correctly populatingproxyAddresses/mailin on-premises AD.Do not try to change the email directly in Microsoft 365 for a synced user; always change the attributes in on-premises AD and let Azure AD Connect update the cloud object.
References:
AI-generated content may be incorrect. Read our transparency notes for more information. -
