How to Merge Exchange Online mailbox

%3CLINGO-SUB%20id%3D%22lingo-sub-394738%22%20slang%3D%22en-US%22%3EHow%20to%20Merge%20Exchange%20Online%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394738%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20office365%20user%20who%20left%20the%20company%203%20months%20back%2Chis%20mailbox%20is%20still%20active%20his%20email%20is%3CBR%20%2F%3Euser1%40contoso.com%20and%20the%20same%20user%20has%20joined%20the%20company%20back%20and%20we%20have%20created%20a%20new%20mailbox%20for%20him%20and%20the%20name%20of%20the%20mailbox%20is%20user2%40contoso.com.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20it%20possible%20to%20merge%20both%20the%20mailboxes%2C%20i.e%20we%20only%20want%20user2%40contoso.com%2C%20we%20want%20user1%40contoso.com%20mails%20to%20be%20merged%20with%20user2%40contoso.com%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eie.%20all%20the%20mails%20of%20user1%40contoso.com%20to%20be%20merged%20with%20user2%40contoso.com%20and%20user1%40contoso.com%20should%20not%20exist%20and%20user2%40contoso.com%20should%20have%20all%20the%20emails%20of%20user1%40contoso.com%20without%20loosing.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-394738%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOn-Premises%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-394808%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Merge%20Exchange%20Online%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394808%22%20slang%3D%22en-US%22%3E%3CP%3EUsing%20mailbox%20search%20can%20help%2C%20however%20all%20the%20copied%20items%20will%20be%20placed%20in%20a%20parent%20folder%20and%20you%20will%20loose%20the%20folder%20structure.%26nbsp%3BEWS%20is%20the%20best%20option%20here%2C%20for%20example%20this%20script%3A%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fcode.msdn.microsoft.com%2Foffice%2FPowerShell-Merge-mailbox-e769c529%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcode.msdn.microsoft.com%2Foffice%2FPowerShell-Merge-mailbox-e769c529%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EThat's%20assuming%20you%20want%20to%20use%20an%20%22admin%22%20solution%2C%20otherwise%20simply%20do%20the%20%22merge%22%20by%20copying%20the%20items%20in%20Outlook.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-394751%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Merge%20Exchange%20Online%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394751%22%20slang%3D%22en-US%22%3ESee%20here%20to%20use%20powershell%20to%20merge%20the%20mailbox%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.neroblanco.co.uk%2F2018%2F10%2Fmerging-two-office-365-mailboxes%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.neroblanco.co.uk%2F2018%2F10%2Fmerging-two-office-365-mailboxes%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EOf%20course%20if%20you%20need%20the%20mail%20for%20more%20like%20a%20archive%20you%20could%20also%20convert%20to%20a%20shared%20mailbox%20and%20give%20full%20permissions%20to%20the%20user!%20The%20user%20could%20also%20copy%20over%20content!%20Same%20with%20a%20pst%20export%2Fimport%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2441971%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Merge%20Exchange%20Online%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2441971%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3ECan%20someone%20share%20this%20script%2C%20URL%20is%20dead%20and%20pointed%20to%20nowhere.%20Or%20share%20via%20email%3A%20Stas.xpulse%40gmail.com%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2482169%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20Merge%20Exchange%20Online%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2482169%22%20slang%3D%22en-US%22%3EThe%20script%20description%20and%20link%20is%20now%20found%20at%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FDavid-Barrett-MS%2FPowerShell-EWS-Scripts%2Fwiki%2FMerge-MailboxFolders.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FDavid-Barrett-MS%2FPowerShell-EWS-Scripts%2Fwiki%2FMerge-MailboxFolders.ps1%3C%2FA%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi All

 

I have an office365 user who left the company 3 months back,his mailbox is still active his email is
user1@contoso.com and the same user has joined the company back and we have created a new mailbox for him and the name of the mailbox is user2@contoso.com.

Is it possible to merge both the mailboxes, i.e we only want user2@contoso.com, we want user1@contoso.com mails to be merged with user2@contoso.com ie. all the mails of user1@contoso.com to be merged with user2@contoso.com and user1@contoso.com should not exist and user2@contoso.com should have all the emails of user1@contoso.com without loosing.

4 Replies
See here to use powershell to merge the mailbox:

https://www.neroblanco.co.uk/2018/10/merging-two-office-365-mailboxes/

Of course if you need the mail for more like a archive you could also convert to a shared mailbox and give full permissions to the user! The user could also copy over content! Same with a pst export/import

Using mailbox search can help, however all the copied items will be placed in a parent folder and you will loose the folder structure. EWS is the best option here, for example this script: https://code.msdn.microsoft.com/office/PowerShell-Merge-mailbox-e769c529

 

That's assuming you want to use an "admin" solution, otherwise simply do the "merge" by copying the items in Outlook.

 

Hi,
Can someone share this script, URL is dead and pointed to nowhere. Or share via email: Stas.xpulse@gmail.com
Thanks