logo
search
Account Security Problems

How to Resolve Duplicate Microsoft Entra ID and Local AD Accounts

Ayan MasoodAyan Masood Oct 23, 2026 869 views

Question details

Resolve synchronization conflicts between duplicate Microsoft Entra ID and local Active Directory accounts.

How to Resolve Duplicate Microsoft Entra ID and Local AD Accounts
Product
Microsoft Entra ID / Active Directory
Device & OS
not provided
Scenario
Managing user directory synchronization and troubleshooting duplicate attribute errors.
Observed behavior
Synchronization conflicts occur due to matching UPN, mail, or proxy address attributes, resulting in duplicate or unlinked accounts.
Before you start

Ensure you have administrative access to both your local Active Directory environment and the Microsoft Entra admin center. Verify which account was created first before modifying any directory attributes.

Solution 1Recommended

Resolve the Sync Conflict using PowerShell and Attribute Soft-Matching

Temporarily modify the local AD user's attributes to clear the sync conflict, then perform a soft-match to merge the accounts.

This method involves changing the local user's attributes so they are completely unique, which forces a clean directory synchronization and clears the conflict. Once the conflict clears, the correct values are restored to trigger a soft-match with the existing Entra ID account.

1
Modify Local AD Attributes

Open your local Active Directory environment. Temporarily change the local user's UPN, proxyAddresses, and mail attributes to unique temporary values to break the conflict.

2
Force Delta Synchronization

Open PowerShell as an Administrator on your sync server and run the command: Start-ADSyncSyncCycle -PolicyType Delta to force a synchronization.

3
Verify Conflict Clearance

Wait for the synchronization to complete and verify in the Microsoft Entra admin center that the synchronization conflict for the user has been cleared.

4
Restore Correct Attributes

Update the local AD user with the correct UPN and proxy addresses so they perfectly match the existing Microsoft Entra ID account.

5
Trigger Soft-Match

Run the Start-ADSyncSyncCycle -PolicyType Delta command once more. The accounts should now successfully soft-match and link together.

Resolve the Sync Conflict using PowerShell and Attribute Soft-Matching
Microsoft Guidance: Always consult Microsoft's official duplicate attribute synchronization guidance for advanced troubleshooting if soft-matching fails.
Free Microsoft Office alternative

Looking for a cost-effective office suite for your organization?

While you manage your organization's directory synchronization, consider providing your users with a powerful, lightweight, and cost-effective office solution. WPS Office offers an intuitive interface without the heavy licensing costs.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installer for your operating system.
  2. 2. Install the Software: Run the installer and follow the quick on-screen prompts to set up the suite on your computer.
  3. 3. Open and Edit: Launch WPS Office and instantly open your existing Microsoft Office documents with perfect formatting preservation.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation with a familiar user interface for seamless migration.Built-in PDF editing and conversion capabilities at no extra cost.Cross-platform support for Windows, macOS, Linux, iOS, and Android environments.
microsoft office alternative - wps office

Frequently Asked Questions

What is a soft-match in Microsoft Entra Connect?

A soft-match occurs when Entra Connect automatically links an existing local Active Directory object with an existing cloud Microsoft Entra ID object based on matching attributes, primarily UserPrincipalName (UPN) or primary SMTP address.

Why do duplicate accounts get created during AD sync?

Duplicate accounts are typically created when synchronization rules fail to appropriately match an existing cloud account with a newly synced local account, often due to mismatched, missing, or conflicting UPN, mail, or proxyAddress attributes.

What does the Start-ADSyncSyncCycle command do?

This PowerShell command triggers the Microsoft Entra Connect sync engine to start a synchronization cycle immediately. Using the '-PolicyType Delta' parameter only syncs changes made since the last cycle, whereas '-PolicyType Initial' forces a complete, full sync of all objects.

How can I check the directory synchronization status?

You can check the sync status by logging into the Microsoft 365 Admin Center or the Microsoft Entra admin center and reviewing the directory sync status panel, which displays the last sync time and highlights any active synchronization attribute errors.