Jun 24 2020
12:51 AM
- last edited on
Jan 14 2022
03:59 PM
by
TechCommunityAP
Jun 24 2020
12:51 AM
- last edited on
Jan 14 2022
03:59 PM
by
TechCommunityAP
Hi,
we use an onpremis AD.. maybe contoso.dom, I sync users to Azure Ad jon@company1.com, ted@company2.com and so on.
No, the companies should be separated onpremise and contos.com disappeas so I have
somecompany1.dom on premise with jon@company1.com
somecompany2.dom on premise with ted@company2.com
but i dont want a different User in AzureAD, when Jon is synced from somecompany1.dom to azure he should find its Onedrive and Teams stuff. Is it possible?
I thougt I took the: employeeID as another attribut for Unique Identify, but select how user should identify with Azure Ad, whats would here the best.
Jul 15 2020 05:03 PM
This is a way you could go about it:
1. Disable sync: https://docs.microsoft.com/en-us/office365/enterprise/turn-off-directory-synchronization
2. Wait for your objects to get the status of cloud managed instead of synced
3. remove the imutableID of your cloud objects.
For started:
Get-MsolUser -All | Set-MsolUser -ImmutableId $null
$User = Get-ADuser $UserSamAccount -Properties * -server $DC
$ImmutableID = [system.convert]::ToBase64String(([GUID]($User.ObjectGUID)).tobytearray())