Office 365 - Hard Match

Mit den folgenden Befehlen lässt sich ein Hard Match via. ImmutableId durchführen.

Import-module ActiveDirectory
$guid =(Get-ADUser -Identity "Username").objectguid
$immutabelD=[system.convert]:: ToBase64String($guid.tobytearray())
Connect—AzureAD
Set-AzureADuser -Objectid "Azure Object ID" -Immutableid $immutabelD