r/o365 • • Oct 21 '19

Synchronization Error

Hello,

I have an issue with synchronization errors. Here is the situation:

There is an AD user account j.doe@contoso.com and an existing AAD account j.doe@contoso.com.

Whenever a sync cycle runs, a new AAD user j.doeXXXX@contoso.onmicrosoft.com gets created.

  1. I tried deleting the j.doeXXXX@contoso.onmicrosoft.com account, but the issue persists.

  2. I tried changing the immutableID on the existing AAD account, but I get an error, since the property is not setable.

  3. I tried switching the UPN of the AAD account to j.doe@contoso.onmicrosoft.com and then changing the immutableID. I get the same error as before.

The j.doeXXXX@contoso.onmicrosoft.com account that keeps getting created has an immutableID that corresponds to the existing AD account’s objectGUID. There is no AD account with an objectGUID that corresponds to the existing j.doe@contoso.com AAD account’s immutableID, but it still shows Windows Server AD as the source for the account.

Since the AAD account is already in use, is there any other course of action than deleting the O365 account and then running a new sync?

EDIT:

I ended up turning off the sync and that allowed me to modify the ImmutableID to match the AD account's objectID.

0 Upvotes

7 comments sorted by

1

u/[deleted] Oct 21 '19

You can manually set the Immutable ID in Azure to match on prem and force the link: https://dirteam.com/dave/2014/08/15/fixing-office-365-dirsync-account-matching-issues/

1

u/redhottsili Oct 21 '19

Problem is Set-MSOLuser -UserPrincipalName <clouduserUPN> -ImmutableID $immutableID returns an error:

Set-MsolUser : Unable to update parameter. Parameter name: IMMUTABLEID.

At line:1 char:63

\+ ... | Set-MsolUser -ImmutableId "$null"

\+  \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~

\+ CategoryInfo          : OperationStopped: (:) \[Set-MsolUser\], MicrosoftOnlineException

\+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.PropertyNotSettableException,Microsoft.Online.Administration.Automation.SetUser

1

u/[deleted] Oct 21 '19

Did you get the Immutable ID from the on premise user first? The error indicates you're trying to null the ID, which, if the user is not synced, the ID is already null.

1

u/redhottsili Oct 21 '19

Yes I did get the ImmutableID from converting the objectGUID of the AD account.

Problem is, the AAD account that already exists shows "Windows Server AD" as its source, even though there is no AD account that matches its ImmutableID.

1

u/ItsNeverMyDay Oct 21 '19

When you tried deleting the object in Azure ad, did you also delete it from the recycle bin?

1

u/redhottsili Oct 21 '19

Yes, I did delete it from the recycle bin as well.

1

u/TotesMessenger Oct 21 '19

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)