Feb 12 2021 03:24 AM
Customer has an AD domain ( CORP ) and they are separating from the company with new domain ( ABC )
Currently they have M365, SharePoint and Teams access, As they are separating from the CORP domain they want to have a separate tenant with M365,Sharepoint and teams and still they will be login to CORP for internal resources access
I will come to the right point.
Can we create a user in M365 and later merge the same user from on premises AD with AD connect tool
if above option is not possible then we want to delete the user created in M365 and sync the on premises users and connect them back to the same applications or data which the users were using wit cloud login.
Let me folks if the above options are possible.
Regards,
Arif
Feb 12 2021 03:32 AM
Solution@arifsohail92 If you create a cloud-only account in 365/Azure AD, and later connect AADConnect sync to it, it will merge accounts that it thinks are the same. Off the top of my head this is done off userPrincipalName or proxyAddresses matching. Probably something to test first but if your userPrincipalName on-premise is the same as the account logon name in 365, or the proxyAddresses contains a match for the email address of the cloud account (as the default address, i.e. SMTP: in upper case), it'll merge them. This is called "soft match" - there's a "hard match" which uses the sourceAnchor/immutableID but in your case I would expect soft match to work.
This explains it a bit better than I can https://raaaimund.github.io/tech/2019/06/13/merge-on-premise-existing-azure-ad-user/
Feb 12 2021 05:19 AM
HIi @CoasterKaty
Thanks for your reply !!
I have also reviewed the below links.
https://docs.microsoft.com/en-US/troubleshoot/azure/active-directory/objects-dont-sync-ad-sync-tool
Feb 12 2021 05:35 AM
@arifsohail92 I've only done it on my home domain with a very small amount of users (at work we created the accounts via AADConnect) but the main thing is to make sure the UPN etc matches before AADConnect runs - once you've run it without them matching it'll make duplicate users and you'll have to spend ages messing with immutableIds etc.
Feb 12 2021 10:48 AM