Error Type: AttributeValueMustBeUnique

Patram, Kevin 21 Reputation points
2022-09-01T14:53:44.483+00:00

First, our local domain is the same as our AAD domain, both are something.org
Sync AD with AAD via AD COnnect, went smoothly except for a few users.
On AD user principal name is abc@, and on AAD (have for 7 yrs now) user principal name is abcd@, after sync this user naow has 2 account in AAD. I changed the username in AD to match AAD so both are now abcd@, now getting sync errors "Error Type: AttributeValueMustBeUnique".
I cannot fixed this witht the trouble shooting article about changing the UPN because there is only 1 option in AD (because of the domain names).
Thanks

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,111 questions
0 comments No comments
{count} votes

Accepted answer
  1. JimmySalian-2011 41,891 Reputation points
    2022-09-01T17:15:02.16+00:00

    Hi,

    You will need to soft match the users in Onprem and AAD, but you have already carried out this step by looks of it. So the only option I can think of is hardmatch the users via ImmutableID.

    how-to-hard-match-a-user-in-office-365

    Please try this on one of the test account.

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Patram, Kevin 21 Reputation points
    2022-09-01T20:32:26.343+00:00

    @JimmySalian-2011
    Thank you very much for the response, you saved my bacon. I opened a Microsoft support ticket but they were no help.
    I did had 1 stumbling part on the link you provided on this line PS C:\> Get-MsolUser -UserPrincipalName lene.hau@azure.skrubbeltrang.com | Set-MsolUser -ImmutableId TlNJ14afp0S1cmvntTssqQ==
    I searched and found [this link][1] https://messageops.com/step-by-step-guide-to-hard-match-a-user-on-office-365-or-azure-ad/ which works great. Thanks again.

    0 comments No comments

  2. JimmySalian-2011 41,891 Reputation points
    2022-09-01T20:45:15.6+00:00

    Glad to know this issue is sorted, I have gone through this similar issue hence I know the joy of user mapping back to the AAD Account :).

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    Please don't forget to upvote and Accept as answer if the reply is helpful

    0 comments No comments