- Przenieść użytkwonika w Active Directory do konteneru, który nie jest synchronizwany
- Dokonać synchronizacji (Start-ADSyncSyncCycle -PolicyType Delta)
- Wyświetlić ImmutableID poleceniem: get-MsolUser -ReturnDeletedUsers -UserPrincipalName mariusz.ferdyn8858@mojadomena.onmicrosoft.com|fl
- Usunąć użytkownika z Azure Active Directory get-MsolUser -ReturnDeletedUsers -UserPrincipalName mariusz.ferdyn8858@mojadomena.onmicrosoft.com|Remove-MsolUser -RemoveFromRecycleBin
- Dokonać synchronizacji (Start-ADSyncSyncCycle -PolicyType Delta)
- Wyświetlić parametry istniejącego użytkownika w Azure Active Directory get-MsolUser -ReturnDeletedUsers -UserPrincipalName mariusz.ferdyn@mojadomena.pl|fl
- Ustawić immutableid otzrymane z polecenia 3, poprzez: get-MsolUser -UserPrincipalName mariusz.ferdyn@mojadomenapl.pl|Set-MsolUser -ImmutableId “W7gqU22hws4tpsPw==”
- Dokonać synchronizacji (Start-ADSyncSyncCycle -PolicyType Delta)
If we use AD Connect software to synchronize Active Directory local accounts, and previously we had some accounts in Azure Active Directory, sooner or later we will meet with the conflict of setting up an account in Azure Active Directory based on the Active Directory account. This will happen if we have the same UPN in Active Directory and set up an account in Azure Active Directory with the same e-mail that have the role of Global Administrator. Then AD Connect will create an account in the @ onmicrosoft.com domain and add a few numbers to the username, so we will have accounts: The ImmutableID attribute is used to connect (match) Azure Active Directory and Active Directory accounts. To merge two accounts, we have to set this attribute for an existing account in Azure Active Directory, with the following procedure:
- Move the user in Active Directory to a container that is not synchronizing
- Synchronize (Start-ADSyncSyncCycle -PolicyType Delta)
- Display ImmutableID with the command: get-MsolUser -ReturnDeletedUsers -UserPrincipalName mariusz.ferdyn8858@mydomain.onmicrosoft.com|fl
- Remove the user from Azure Active Directory get-MsolUser -ReturnDeletedUsers -UserPrincipalName mariusz.ferdyn8858@mydomain.onmicrosoft.com|Remove-MsolUser -RemoveFromRecycleBin
- Synchronize (Start-ADSyncSyncCycle -PolicyType Delta)
- View the parameters of an existing user in Azure Active Directory get-MsolUser -ReturnDeletedUsers -UserPrincipalName mariusz.ferdyn@mydomain.com|fl
- Set the immutableid from the command 3, by: get-MsolUser -UserPrincipalName mariusz.ferdyn@mojadomenapl.pl|Set-MsolUser -ImmutableId “W7gqU22hws4tpsPw ==”
- Synchronize (Start-ADSyncSyncCycle -PolicyType Delta)