Hi @Jack Chuong,
Thanks for the sharing! Glad to hear you have found a method working for you!
While due to the forum policy, the original poster cannot accept his own reply as the answer to the question.
I have written a summary for this question, please feel free to accept it as answer to highlight it to help other community members.
Thanks again for your sharing.
[Cross-tenant mailbox migration with on-premise AD environment]
Scenario:
migrate mailbox from sub company tenant xyz.com --> my company tenant abc.com (more accurately is merging sub company xyz.com to my company abc.com)
Source tenant : xyz.com , Microsoft 365 , 100 users mailboxes , will be removed after migration/merging.
Target tenant : abc.com , Microsoft 365 with on-premise AD environment.
Requirement : Keep user mailbox data, do not use third-party migration tool.
Resolution:
I found a way : to migrate mailbox from source tenant : xyz.com --> target tenant : abc.com Microsoft 365 with on-premise AD environment
Requirement :
- Keep user mailbox data, do not use third-party migration tool
- Map/Match mailbox with ADUser so I can modify/edit user's information from AD on premise.
Here my plan in short :
Step1: Follow this article : Cross-tenant mailbox migration , to migrate mailbox from source tenant : xyz.com --> target tenant : abc.com
Step2: Put migrated mailbox to soft deleted by Remove-Mailbox command
Step3: Create ADUser from AD on premise , sync ADUser to Microsoft 365 through ADConnect , assign Microsoft 365 license
Step4: Reconnect soft deleted mailbox to ADUser
[string]$oldguid=(Get-Mailbox -SoftDeletedMailbox -Identity ******@mydomaincom.mail.onmicrosoft.com).Guid
[string]$newguid=(Get-Mailbox -Identity ******@mydomaincom.mail.onmicrosoft.com).Guid
New-MailboxRestoreRequest -SourceMailbox $oldguid -TargetMailbox $newguid -AllowLegacyDNMismatch