The sync errors are caused by duplicate UserPrincipalName (UPN) values between your on‑premises Active Directory objects and existing Microsoft Entra (Azure AD/Microsoft 365) cloud objects. Entra Connect requires UPNs and certain attributes (like proxyAddresses) to be unique; when a duplicate is found, the object is either modified (number appended) or put into an error/quarantine state.
In your case, there is already a cloud object using ******@domainname.com as its UPN. When the corresponding on‑premises user is synchronized, Entra Connect tries to set the same UPN in Entra ID, detects the conflict, and throws the error you see. This is also why some users now show ******@tenant.onmicrosoft.com: Entra ID automatically appends a number to keep the UPN unique when a duplicate exists.
To resolve the errors, the UPNs must be made unique across all objects.
- Identify which object should own the UPN
- For each conflicting UPN (for example,
******@domainname.com), decide which account is the “real” account that should keep that UPN (usually the production user that should sign in with that address).
- The other object(s) must be changed so they no longer use that UPN.
- Fix duplicates in on‑premises Active Directory
- Run the IdFix DirSync Error Remediation Tool against your on‑premises AD to find duplicate or invalid attributes, including UPN and proxyAddresses.
- For each duplicate UPN reported, change the UPN in AD so that it is unique (for example, change a test or stale account to another UPN or decommission it if not needed).
- IdFix guidance for resolving duplicates is described in "Duplicate" is displayed in the ERROR column.
- Check and fix duplicates in Entra ID/Microsoft 365
- In the Microsoft 365 admin center, go to Users → Active users.
- A warning banner appears if there are duplicate attribute conflicts.
- Select the affected user to see the conflict details and then change the user name so that it is unique (for example, adjust or remove the UPN on a cloud‑only or stale account that should not own that UPN).
Alternatively, use Entra PowerShell to list provisioning errors:
- Connect as a tenant admin:
Connect-Entra.
- List objects with duplicate UPN or proxyAddresses:
-
Get-EntraDirectoryObjectOnPremisesProvisioningError | Where-Object PropertyCausingError -eq 'UserPrincipalName'
-
Get-EntraDirectoryObjectOnPremisesProvisioningError | Where-Object PropertyCausingError -eq 'ProxyAddresses'
- For each entry, adjust or remove the conflicting value on the object that should not own it.
- Let Entra Connect resync
- After fixing duplicates in AD and/or Entra ID, allow the next synchronization cycle to run (or trigger a sync from the Entra Connect server).
- The duplicate‑attribute errors should clear once the changes are synchronized.
- General duplicate‑attribute remediation pattern
- Identify the duplicated value (UPN or proxyAddresses) and all objects involved.
- Decide which object should keep the value.
- Remove or change the value on the other object(s) in the source directory (on‑prem AD or Entra ID, depending on where the object is authoritative).
- Allow Entra Connect to sync the changes.
If some users still show numbered ******@tenant.onmicrosoft.com UPNs after conflicts are resolved, update their UPNs (in AD for synced users) to the desired ******@domainname.com and let Entra Connect sync again.
References: