Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hi Antony,
You need to remove the domain from company B (you will be no longer involved.), then add the domain to a new company( company A).
Before moving the domain, you can back up the users' information of OneDrive for Business and mails.
For the backup of OneDrive for Business, you can use new OneDrive sync client to sync the files to local location, then transfer the files to another sync folder of another account in local location first, and sync the files to the new OneDrive for Business account later.
For the new OneDrive sync client, please refer to the articles:
Get started with the new OneDrive sync client in Windows
Get started with the new OneDrive sync client on Mac OS X
For the backup of mails, you can refer to the articles:
Export or backup email, contacts, and calendar to an Outlook .pst file
Archive or back up your mailbox
For removing and adding domains, you can refer to the articles:
Remove a domain from Office 365
Add a domain and users to Office 365
After you finish all above, when you create new users in the new tenant/company, you can set a user as the Administrator by editing the Roles for the user in Office 365 Admin Center.
Regards,
Tina