How can I migrate on-premise exchange 2019 users to M365 if they are already added as guest users in the onmicrosoft.com tenant and have Teams conversation history that needs to be preserved?

Corneliu Maresciuc 20 Reputation points
2023-08-23T07:15:19.6733333+00:00

I have an exchange 2019 on-premise server and I want to migrate to M365.

There are several tenants on the server and I can't perform a cutover migration since it will take all mailboxes from all domains on the server.

I am exploring the IMAP migration and wanted to create the users in M365.

However, I encountered this issue: On-premise users are already added as guest users on the onmicrosoft tenant. As guest users they are already using Teams and have a rich conversation history that needs to be preserved.

How can I migrate the emails of the users and keep Teams history and have in the end the on-premise domain email address as main username and not the guest added one?

Thank you.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,985 questions
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,306 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,177 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kael Yao-MSFT 37,646 Reputation points Microsoft Vendor
    2023-08-24T02:27:12.53+00:00

    Hi @Corneliu Maresciuc

    To migrate the on-premises users to Exchange Online, you may first need to create the corresponding Azure AD accounts (which is supposed to be another account than the guest account) and assign licenses.

    However, to my knowledge unfortunately it is not supported to convert a guest user to a member (to be used as the corresponding account for the user to be migrated) while keeping Teams conversation history.

    Please refer to this link: Guest access in Microsoft Teams

    User's image

    And there is no supported method or tool to migrate the Teams conversation history by Microsoft.

    If possible I would suggest looking for some third-party tools to see if you can migrate the Teams data from the guest account to the new account.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Iftikhar Ali 170 Reputation points
    2023-08-23T08:30:33.6+00:00

    In summary, to migrate from an on-premises Exchange 2019 server to Microsoft 365 while preserving Teams history and retaining the on-premises domain email addresses as the primary ones:

    1. Perform an IMAP migration for email data to Microsoft 365.
    2. Investigate the latest guidance on preserving Teams history during migration from Microsoft.
    3. Convert guest user accounts to full Teams members after email migration.
    4. Change the primary email addresses in Microsoft 365 to the on-premises domain addresses.
    5. Update mail flow settings to route emails to Microsoft 365.
    6. Thoroughly test and validate the setup.
    7. Communicate the migration plan to users.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.