Sync between On-Prem AD and Azure AD shows error with dn-attributes-failure

Park, Jei 0 Reputation points
2025-02-25T17:23:04.9933333+00:00

I am trying to sync all users from On-Prem AD to Azure AD.

However, getting below error messages for some users and groups

dn-attributes-failure

How can I resolve this error for random users and groups?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sanoop M 4,310 Reputation points Moderator
    2025-02-26T22:57:52.5133333+00:00

    Hello @Park, Jei,

    Thank you for posting your query on Microsoft Q&A.

    I understand that when you are trying to sync all users from On-Prem AD to Microsoft Entra ID, you are getting below the error message for some users and groups.

    dn-attributes-failure

    The error dn-attributes-failure on users and On-Prem AD Security Groups usually occurs when there are users with duplicate attribute values in the on-premises domain and are part of the group being synced to Microsoft Entra ID. For example, you can have the same SMTP/Proxy address configured for 2 users in local AD, but when you sync those users to Microsoft Entra ID, you will encounter a dn-attributes-failure error for all the On-Prem AD Security Group the user is part of.

    To resolve this error, you need to correct the duplicate attributes in your On-premises AD for all the users who are part of the affected group. After making the changes in your local AD, please run the below Powershell command to run a full sync cycle.

    Start-ADSyncSyncCycle -PolicyType Initial

    Also I suggest you to follow these steps to verify the objects causing "dn-attributes-failure" on the group object:

    1.Open the Synchronization Service Manager.

    2.Open the object with Export Error "dn-attributes-failure" on the Microsoft Entra ID Connector space object.

    3.Check the membership attribute open the list of members from the New Value column.

    4.Copy the new DN being added into Notepad.

    5.Search for that DN in the Microsoft Entra ID Connector Space and check if this object has any errors or conflicts.

    6.Resolve the error or conflict for that object accordingly.

    7.Repeat the steps 2-6 for other objects if applicable.

    8.On the next delta sync cycle, the "dn-attributes-failure" should get resolved.

    For additional details, please refer to the below documents for your reference.

    Microsoft Entra Connect: Troubleshoot errors during synchronization - Microsoft Entra ID | Microsoft Learn

    Troubleshoot an object that is not syncing with Microsoft Entra ID' - Microsoft Entra ID | Microsoft Learn

    I hope this above information provided is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.