directory synchronization
1 TopicDuplicate Users Reappearing After Correcting ms-DS-ConsistencyGuid)
I am sharing this resolved case because I could not find many complete examples online. Hopefully it helps other administrators facing duplicate Microsoft Entra ID users that continue to reappear after deletion. ## Environment - Active Directory (On-Premises) - Microsoft Entra ID - Microsoft Entra Connect ## Problem For several years, duplicate user accounts periodically reappeared in Microsoft Entra ID. Typical symptoms: - Duplicate accounts appeared with the tenant's default .onmicrosoft.com domain. - A valid production user already existed for the same individual. - The duplicate accounts had no licenses assigned. - The duplicate accounts could be deleted successfully. - After some time, the duplicate accounts reappeared automatically. - Audit logs showed "Add user" events. - The creation source was reported as directory synchronization. ## Investigation Using Microsoft Entra audit logs, the duplicated objects were traced back to synchronization activity. The duplicate objects contained: - DirSyncEnabled attributes - SourceAnchor references - OnPremisesObjectIdentifier values This indicated that Entra Connect was creating the objects rather than a manual or cloud-only process. ## Probable Root Cause The issue appeared to be related to identity matching between Active Directory and Microsoft Entra ID. Some user objects had historical inconsistencies related to identity anchoring. As a result, Entra Connect occasionally generated alternate cloud objects instead of properly matching the existing synchronized identity. ## Solution Applied The affected users were analyzed individually. The process used was: Retrieve the Base64 identifier from Entra ID. Convert the Base64 value to a GUID. Write the corresponding GUID to the user's ms-DS-ConsistencyGuid attribute in Active Directory. Allow Entra Connect synchronization to complete. Monitor future synchronization cycles. Example: Set-ADUser username -Replace @{ "ms-DS-ConsistencyGuid" = $guidByteArray } ## Results After correcting the affected users' ms-DS-ConsistencyGuid values: - Duplicate users stopped being recreated. - Multiple synchronization cycles completed successfully. - No additional duplicate accounts have reappeared. - The issue has remained resolved throughout the observation period. ## Conclusion In this case, duplicate Entra ID users were caused by inconsistent identity correlation between Active Directory and Entra ID. Correcting the ms-DS-ConsistencyGuid attribute restored proper identity matching and permanently stopped the creation of duplicate synchronized accounts. ## Status RESOLVED Observation period completed successfully. No duplicate users have reappeared after multiple synchronization cycles.5Views0likes0Comments