"The cause of the error is not clear" - User will not sync into Azure AD with AAD Sync or AD Connect

Recently, we had an issue where four specific users would not sync into Azure AD. There were no noticeable differences in attributes between these users and ones that were working.

Compounding the issue was a rather unhelpful error message

The cause of the error is not clear. This operation will be retried during the next synchronization. If the issue persists, contact Technical Support

With a little help from Microsoft support, we were able to resolve the issue using the following steps
  1. First, create a new user in Office 365 with a default domain UPN (eg org.onmicrosoft.com)
  2. Get the users ObjectGUID from AD
  3. Set the ImmutableID attribute on the new account to be the ObjectGUID of the AD account
  4. Run a delta sync or wait for next scheduled sync. At this point, the AD user will be joined with the Azure user account, and the user's attributes will be updated appropriately.
For example, if you receive the following error in an email

user1@lithnet.io
The cause of the error is not clear. This operation will be retried during the next synchronization. If the issue persists, contact Technical Support.
HiRTTFj/bVurY4hUBb+zwg==

You can use the following PowerShell command to resolve the issue

Credit goes to Cameron Duck for the troubleshooting process and coming up these resolution steps

Comments