Azure AD: how to update user's ImmutableId without AzureAD module nor MSOnline module

Anonymous
2024-11-23T02:38:55.55+00:00

I am AD and Azure AD Administrator. I want to sync an existing Azure AD account with a newly created on-premises AD account in an environment where: OnPremisesImmutableId is empty for all Azure AD accounts. Azure AD Connect currently uses objectGUID for synchronization. The Azure AD account was created independently, and now needs to be linked to an on-premises AD account. and updating [immutableid] in user object using Azure AD module is the only way I could find, but Azure AD module cannot be run in Windows 2022 server. My goal is to sync an existing Azure AD account with a newly created on-premises AD account using objectGUID for syncID. Any suggestions would be appreciated.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

3 answers

Sort by: Most helpful
  1. Abiola Akinbade 29,405 Reputation points Volunteer Moderator
    2024-11-23T04:30:52.0633333+00:00

    Take a look at this link here:

    https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-install-existing-tenant?source=recommendations

    The above applies to when you have an existing tenant.

    If the ImmutableID is not null , you have to convert its value and set it on ms-dsconsystencyGUID in AD on-premise user account.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

  2. Thameur-BOURBITA 36,261 Reputation points Moderator
    2024-11-23T15:58:52.76+00:00

    Hi @Anonymous

    You should Hard match method by converting the Immutable value of each user and put it in the ms-ConsistencyGUID attribute in his on-prem account in active directory.

    Below a command to convert Immutable ID to msds-consistencyGUID:

    $immutable = Get-MgUser -UserId ******@azure.skrubbeltrang.com -Property UserPrincipalName,OnPremisesImmutableId | select -ExpandProperty OnPremisesImmutableId
    $msdsConsistencyGUI =  [Convert]::ToBase64String([guid]::New($immutable).ToByteArray())
    
    

    Please don't forget to accept helpful answer


    0 comments No comments

  3. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2024-11-23T16:04:50.8033333+00:00

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.