Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query.
To change the synchronization from an old Active Directory (AD) to a new AD, you need to perform the following steps:
- Disable synchronization in the old Azure AD Connect installation.
- Remove the old Azure AD Connect installation completely.
- Install the new Azure AD Connect on the new AD machine.
- Configure Azure AD Connect to sync the desired users and objects from the new AD to Azure AD.
- Start the synchronization process.
The unique attribute errors may occur if the same user account already exists in Azure AD and the new AD domain. To resolve this issue, you can either delete the duplicate user accounts from Azure AD or use a different method to match the users. You can try matching the users based on the mail attribute instead of the immutableID.
Make sure to take a backup of the old Azure AD Connect configuration and the objects before making any changes.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.