Resolve a Duplicate User Principal Name in Microsoft 365
Question details
Identify and resolve a duplicate user principal name that prevents a synchronized user's UPN from being changed.

- Product
- Microsoft 365 and Microsoft Entra ID
- Device & OS
- not provided
- Scenario
- An administrator is changing the sign-in name of a user synchronized from on-premises Active Directory.
- Observed behavior
- The requested UPN is reported as already in use, although no active recipient appears to have it.
Confirm the requested UPN and whether the user is synchronized from on-premises Active Directory. Use an account with permission to inspect directory objects, synchronization errors, and Exchange recipients.
Find the conflicting object and resynchronize the UPN
Use this approach when an on-premises user cannot synchronize a new UPN because another object may already use the name or address.
For directory-synchronized users, make the UPN change in on-premises Active Directory. A deleted user, mail user, or proxy address may explain a conflict that is not visible in an ordinary active-recipient search.
In Active Directory Users and Computers, find the affected user and check its sign-in name under Properties > Account. Run Microsoft's IdFix tool against the directory to identify duplicate or invalid attributes, including UPNs and proxy addresses.
In the Microsoft Entra admin center, search Identity > Users > All users and Deleted users for the requested UPN. Alternatively, connect to Microsoft Graph PowerShell and use Get-MgUser -Filter "userPrincipalName eq 'user@domain.com'" and Get-MgDirectoryDeletedItemAsUser -All | Where-Object { $_.UserPrincipalName -eq 'user@domain.com' }, replacing the example UPN.
In the Exchange admin center, search Recipients for the requested address, including mail users. Also inspect email addresses on likely matches; a proxy address can conflict even when it is not the recipient's primary address.
Open the conflicting object's properties in its authoritative directory and change or remove the duplicate value if it is no longer needed. Review deleted users before restoring or permanently deleting an obsolete account; permanent deletion is irreversible and can remove associated data.
In Active Directory Users and Computers, update the affected user's sign-in name under Properties > Account. On the Microsoft Entra Connect Sync server, run Start-ADSyncSyncCycle -PolicyType Delta, then check the user and synchronization status in the Microsoft Entra admin center.

Work with Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Office files. Its format compatibility makes it easy to move existing documents, spreadsheets, and presentations into your workflow. It does not resolve Microsoft 365 directory or account conflicts.

Frequently Asked Questions
Why does Microsoft 365 report a duplicate UPN when I cannot find an active user?
The name may belong to a deleted user or another directory object, such as a mail user. Search All users and Deleted users in the Microsoft Entra admin center, and check Exchange recipients and their email addresses.
Where should I change the UPN for a synchronized user?
Change it in on-premises Active Directory Users and Computers under the user's Properties > Account, then allow Microsoft Entra Connect Sync to synchronize the change.
Can a proxy address cause a duplicate-value conflict?
Yes. Inspect the email addresses on users and Exchange recipients, including mail users, for the requested address. Correct a conflicting address in the directory that manages the object.
How do I check deleted users without using the retired MSOnline module?
Use Identity > Users > Deleted users in the Microsoft Entra admin center, or connect to Microsoft Graph PowerShell and filter the results of Get-MgDirectoryDeletedItemAsUser by UserPrincipalName.




