大网数据广告活动
域与目录服务

Number added to user names and email addresses when users are synced to Microsoft Entra ID

· 52CE 我爱测

Provides information about troubleshooting an issue in which a number is added to user names and email addresses when users are synced to Microsoft Entra ID.

Summary

This article provides information about troubleshooting an issue in which a number is added to user names and email addresses when users are synced to Microsoft Entra ID. This issue occurs if there are duplicate user principal names (UPN).

Original product version:   Microsoft Entra ID
Original KB number:   3166795

Symptoms

When users are synced to Microsoft Entra ID, a number is added to their UPN and SMTP proxy address. For example: john1234@contoso.onmicrosoft.com.

Note: When users are created in Microsoft Entra ID, their user principal name (UPN) will also be used as one of the SMTP proxy addresses. Therefore, the SMTP proxy address will also contain the number.

Additionally, you may see one of the following messages:

In the Office 365 portal:

There is an error on one or more user accounts. To see which users are affected and the detailed error message, select the "users with errors" view, and then click the user's display name.

[DIRSYNC ERROR]: This User has been synced to your Microsoft Entra ID, but we had to modify the UserPrincipalName property from john@contoso.com to john1234@contoso.onmicrosoft.com because an existing user, john@contoso.com, was already created with this value.john@contoso.com to john1234@contoso.onmicrosoft.com because an existing user, john@contoso.com, was already created with this value.

From an email report:

This object has been updated in your Microsoft Entra ID, but with some modified properties, because the following attributes are associated with another object [ProxyAddresses SMTP:john@contoso.com;].

This object has been updated in your Microsoft Entra ID, but with some modified properties, because the following attributes are associated with another object [UserPrincipalName john@contoso.com;].

This issue occurs if another object has the same UPN.

Resolution

To resolve this issue, find the users who have duplicate UPNs, and then change the UPNs so that they are unique. To do this, follow these steps.

Step 1: Check your local directory

Use the IdFix DirSync Error Remediation Tool to identify duplicate or invalid attributes.

To resolve duplicate attributes by using the IdFix Tool, see "Duplicate" is displayed in the ERROR column.

For more information about the IdFix tool, go to IdFix DirSync Error Remediation Tool.

Step 2: Check Microsoft Entra ID

You can use the Office 365 portal or the Azure Active Directory module for Windows PowerShell to check Microsoft Entra ID for duplicate attributes.

Method 1: Use the Office 365 portal
  1. Sign in to the Office 365 portal as an administrator.

  2. In the Microsoft 365 admin center, go to Users, and then select Active users.

    A warning at the top of the page is displayed if there are duplicate attribute conflicts on any object in your organization.

  3. Select an object to view details about the conflict. This information is displayed in the lower-right corner of the page.

  4. Change the user name so that it's unique.

Method 2: Use the Azure AD module for Windows PowerShell

To learn more about how to use the Azure AD module for Windows PowerShell to identify objects that have duplicate values, see Identity synchronization and duplicate attribute resiliency.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 05/11/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。