Match a New AD user to an existing 365 user

To match a new AD user to an existing 365 user.

  1. match UPN and smtp Alias
    2 install “Microsoft Online Services Sign in Assistant for IT Professionals
    3 Open Powershell (Admin): Install-Module -Name AzureAD
    4 connect to AD: Connect-MsolService
    5 Return the immutable ID: Get-MsolUser -UserPrincipalName john@cesarhara.com | select ImmutableID ::(should look like this qxZB3Nrxi0+OQHswuBLgrg==)
    6 Convert to HEX:
    7 Stop ADSYNC (open it to pause sync)
    8 insert the Hex string into Local AD on the required user, attributes tab, look for mS-DS-ConsistencyGuid.
    9 Add the account into a synched OU and enable sync to test.