Microsoft have written a fairly comprehensive guide to the migration of accounts between Office 365 complete with sample PowerShell code. Unfortunately the article is lacking in detail about how to move Email and SharePoint data but it has a good explanation of how to move the accounts. The article can be found here, but an overview of the steps is listed below.
- Export a list of users from the original tenant.
- Create users in the new tenant from the information gathered at #1. If their email domain will be changing they can be created with the new domain name, otherwise they will need creating witht onmicrosoft.com email addresses.
- Point the MX record to a service that will store emails for you.
- Remove all references of the domain name from the old tenant.
- Change the name of the public sharepoint site if you have one.
- Remove Skype for Business licenses to remove SIP addresses.
- Change users to onmicrosoft.com domain
- Get-MSOLUser -DomainName bret-tech.com will list any objects that need modifying
- Remove the domain from the old tenant.
- Add the domain name to the new tenant.
- Change addresses in the new tenant to use the domain name
- Point your MX record back to Office 365.
- Retrieve your stored emails from th3 host you setup at #3
- Re-configure Outlook profiles and delete nickname caches.
- Export mail from old tenant and import into new.