Home

Shared mailboxes automapping broke and cannot be removed after hybrid migration

%3CLINGO-SUB%20id%3D%22lingo-sub-190135%22%20slang%3D%22en-US%22%3EShared%20mailboxes%20automapping%20broke%20and%20cannot%20be%20removed%20after%20hybrid%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190135%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20migrated%20a%20user%20from%20Exchange%20to%20Office%20365.%20The%20shared%20mailbox%20is%20still%20on%20premises%20in%20Exchange.%20The%20full%20access%20is%20working%20and%20i%20can%20see%20that%20the%20user%20can%20still%20open%20the%20mailbox%20via%20OWA%20(open%20another%20mailbox).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20user%20had%20the%20mailbox%20automapped%20to%20his%20Outlook%20and%20after%20migrating%20him%2C%20his%20Outlook%20will%20no%20longer%20open%20the%20automapped%20mailbox.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20we%20try%20and%20remove%20the%20full%20access%20permissions%20and%20the%20automapping%20from%20the%20mailbox%20on%20prem%20it%20will%20not%20remove%20from%20Outlook.%20(We%20need%20to%20delete%20his%20Outlook%20profile%20and%20recreate%20to%20get%20rid%20of%20it)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20it%20thinks%20it%20is%20automapped%2C%20we%20cannot%20remove%20the%20mailbox%20from%20his%20Outlook.%20Even%20after%20removing%20it%20via%20powershell%20on%20prem.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20the%20mailbox%20is%20already%20added%20to%20his%20Outlook.%20We%20cannot%20go%20to%20account%20settings%20and%20force%20the%20mailbox%20to%20be%20added%20to%20the%20profile%20again.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThoughts%3F%20We%20will%20eventually%20move%20the%20shared%20mailbox%20to%20Office%20365.%20But%20there%20are%20a%20lot%20of%20users%20accessing%20this%20mailbox.%20We%20cannot%20migrate%20it%20until%20we%20are%20ready%20for%20the%20rest%20of%20the%20users%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-190135%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAutomapping%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ecross%20premises%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOutlook%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eshared%20mailbox%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-375856%22%20slang%3D%22en-US%22%3ERe%3A%20Shared%20mailboxes%20automapping%20broke%20and%20cannot%20be%20removed%20after%20hybrid%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-375856%22%20slang%3D%22en-US%22%3EHi%20guys%20this%20is%20my%20first%20response%20in%20the%20community%20but%20I%20was%20able%20to%20resolve%20this%20with%20in%20our%20environment.%3CBR%20%2F%3EFirst%20the%20hard%20way%2C%20if%20it's%20really%20stuck!%3CBR%20%2F%3EDelete%20all%20profiles%20in%20Control%20Panel%20%26gt%3B%20Mail%20%26gt%3B%20(I%20took%20all%20of%20the%20non%20folder%20contents%20out%20of%20the%20user%20appdata%20files%2C%20all%20minus%20the%20original%20folders%20including%3A%20xml%2Fost%2FPST%2Fnst...%20pretty%20much%20any%20thing%20listed%2C%20into%20a%20new%20file%20on%20the%20desk%20top)%3CBR%20%2F%3E%3CBR%20%2F%3ECreate%20another%20profile%20in%20Control%20Panel%20%26gt%3B%20Mail%20%26gt%3BData%20Files%20%26gt%3B%20Email%20%26gt%3B%20Add%20%26gt%3B%20Manual%20Setup%20%26gt%3B%20office%20365%20option%26gt%3B%20input%20the%20email%26gt%3B%20allow%20to%20connect....%3CBR%20%2F%3EOnce%20Outlook%20open%20and%20it's%20updating%20the%20mailboxes%20right%20click%20the%20original%20Auto%20mapped%20Group%20mailbox%20and%20select%20remove%20or%20delete.%3CBR%20%2F%3E%3CBR%20%2F%3EOutlook%20seems%20to%20go%20crazy%20for%20a%20second%20and%20only%20the%20new%20secondary%20email%20will%20pop%20up.%3CBR%20%2F%3E%3CBR%20%2F%3EClose%20outlook%20go%20back%20to%20Control%20Panel%20%26gt%3B%20Mail%20%26gt%3B%20remove%20the%20profile%20and%20add%20it%20back%20with%20the%20same%20steps%20as%20above.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20seems%20to%20sync%20the%20permissions%20with%20o365%20and%20the%20auto%20mapped%20mail%20box%20should%20be%20gone.%3CBR%20%2F%3E%3CBR%20%2F%3EDepending%20on%20the%20permissions%20they%20should%20have%20the%20options%20to%20send%20from%20the%20mailbox%20as%20themselves%20or%20from%20the%20mailbox%20at%20this%20point.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20east%20way%20that%20worked%20a%20few%20times%20was%20to%20just%20add%20the%20account%20from%20file%20%26gt%3B%20%22Add%20account%22%20%26gt%3B%20allow%20to%20populate%26gt%3B%20close%20outlook%20%26gt%3B%20open%20Outlook%26gt%3B%20delete%20the%20profiles%20listed%20in%20Control%20Panel%26gt%3B%20Mail%20%26gt%3B%20close%20outlook%20%26gt%3B%20go%20to%20control%20panel%20%26gt%3B%20mail%20%26gt%3B%20add%20profile%20name%20if%20you%20get%20the%20traditional%20mail%20set%20up%20use%20the%20manual%20set%20up%20with%20the%20same%20steps%20as%20above%20if%20you%20get%20the%20auto%20365%20set%20up%20just%20add%20the%20email%20back%20from%20file%20%26gt%3B%20add%20account...%20Upon%20opening%20it%20should%20be%20good%20to%20go.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-190185%22%20slang%3D%22en-US%22%3ERe%3A%20Shared%20mailboxes%20automapping%20broke%20and%20cannot%20be%20removed%20after%20hybrid%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190185%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B-%20Understood%20and%20we%20have%20and%20are%20taking%20into%20account%20automapping%20as%20part%20of%20full%20end%20user%20migrations.%20Currently%20our%20issue%20is%20that%20we%20have%20migrated%20a%20select%20user%20group%20that%20are%20ok%20with%20losing%20automapping.%20The%20issue%20now%20is%20that%20after%20the%20user%20was%20migrated%20the%20mailbox%20is%20still%20%22stuck%22%20as%20automapped%20to%20the%20Outlook%20client.%20We%20cannot%20delete%20or%20remove%20it%2C%20I%20have%20tried%20everything%20on%20prem%20in%20powershell%20and%20AD%2C%20etc.%20Since%20it%20broken%20in%20a%20%22stuck%22%20automapped%20stated%2C%20we%20cannot%20add%20a%20secondary%20mailbox%20to%20Outlook.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F875%22%20target%3D%22_blank%22%3E%40Christopher%20Webb%3C%2FA%3E%26nbsp%3B-%20Automapping%20is%20working%20fine%20for%20remaining%20Exchange%20on%20prem%20users%20to%20Exchange%20and%20Office%20365%20to%20Office%20365.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-190152%22%20slang%3D%22en-US%22%3ERe%3A%20Shared%20mailboxes%20automapping%20broke%20and%20cannot%20be%20removed%20after%20hybrid%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190152%22%20slang%3D%22en-US%22%3EIt%20should%20work%20just%20fine%20with%20the%20auto%20mapping%2C%20are%20you%20syncing%20the%20shared%20mailboxes%20OU%20location%20to%20Office%20365%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-190150%22%20slang%3D%22en-US%22%3ERe%3A%20Shared%20mailboxes%20automapping%20broke%20and%20cannot%20be%20removed%20after%20hybrid%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190150%22%20slang%3D%22en-US%22%3E%3CP%3EAutomapping%20is%20NOT%20supported%20cross-premises%2C%20it's%20clearly%20mentioned%20in%20the%20documentation%20and%20you%20should%20have%20planned%20around%20it.%20Anyway%2C%20apart%20from%20recreating%20the%20Outlook%20profile%20for%20any%20of%20the%20affected%20users%2C%20you%20can%20try%20to%26nbsp%3Bmanually%20edit%26nbsp%3Bthe%20automapping%20attributes%20as%20detailed%20for%20example%20here%3A%20%3CA%20href%3D%22http%3A%2F%2Ftechgenix.com%2Fmailbox-auto-mapping-exchange-server-2010-part2%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Ftechgenix.com%2Fmailbox-auto-mapping-exchange-server-2010-part2%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20thing%20to%20try%20is%20to%20%22reset%22%20automapping%20via%20the%20%E2%80%93ClearAutoMapping%20switch%20for%20Remove-MailboxPermission.%20I'm%20not%20sure%20however%20whether%20this%20cmdlet%20made%20it%20to%20on-premises%2C%20so%20it%20might%20not%20be%20available%20for%20you.%20If%20it%20is%2C%20be%20aware%20that%20running%20it%20will%20clear%20the%20automapping%20for%20all%20users%20that%20currently%20have%20access%20to%20said%20mailbox%2C%20you%20cannot%20designate%20a%20single%20delegate%20with%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Tom Gould
Contributor

We migrated a user from Exchange to Office 365. The shared mailbox is still on premises in Exchange. The full access is working and i can see that the user can still open the mailbox via OWA (open another mailbox). 

 

This user had the mailbox automapped to his Outlook and after migrating him, his Outlook will no longer open the automapped mailbox.

 

When we try and remove the full access permissions and the automapping from the mailbox on prem it will not remove from Outlook. (We need to delete his Outlook profile and recreate to get rid of it)

 

Since it thinks it is automapped, we cannot remove the mailbox from his Outlook. Even after removing it via powershell on prem. 

 

Since the mailbox is already added to his Outlook. We cannot go to account settings and force the mailbox to be added to the profile again. 

 

Thoughts? We will eventually move the shared mailbox to Office 365. But there are a lot of users accessing this mailbox. We cannot migrate it until we are ready for the rest of the users? 

4 Replies

Automapping is NOT supported cross-premises, it's clearly mentioned in the documentation and you should have planned around it. Anyway, apart from recreating the Outlook profile for any of the affected users, you can try to manually edit the automapping attributes as detailed for example here: http://techgenix.com/mailbox-auto-mapping-exchange-server-2010-part2/

 

Another thing to try is to "reset" automapping via the –ClearAutoMapping switch for Remove-MailboxPermission. I'm not sure however whether this cmdlet made it to on-premises, so it might not be available for you. If it is, be aware that running it will clear the automapping for all users that currently have access to said mailbox, you cannot designate a single delegate with it.

It should work just fine with the auto mapping, are you syncing the shared mailboxes OU location to Office 365?

@Vasil Michev - Understood and we have and are taking into account automapping as part of full end user migrations. Currently our issue is that we have migrated a select user group that are ok with losing automapping. The issue now is that after the user was migrated the mailbox is still "stuck" as automapped to the Outlook client. We cannot delete or remove it, I have tried everything on prem in powershell and AD, etc. Since it broken in a "stuck" automapped stated, we cannot add a secondary mailbox to Outlook. 

 

@Deleted - Automapping is working fine for remaining Exchange on prem users to Exchange and Office 365 to Office 365. 

Hi guys this is my first response in the community but I was able to resolve this with in our environment.
First the hard way, if it's really stuck!
Delete all profiles in Control Panel > Mail > (I took all of the non folder contents out of the user appdata files, all minus the original folders including: xml/ost/PST/nst... pretty much any thing listed, into a new file on the desk top)

Create another profile in Control Panel > Mail >Data Files > Email > Add > Manual Setup > office 365 option> input the email> allow to connect....
Once Outlook open and it's updating the mailboxes right click the original Auto mapped Group mailbox and select remove or delete.

Outlook seems to go crazy for a second and only the new secondary email will pop up.

Close outlook go back to Control Panel > Mail > remove the profile and add it back with the same steps as above.

This seems to sync the permissions with o365 and the auto mapped mail box should be gone.

Depending on the permissions they should have the options to send from the mailbox as themselves or from the mailbox at this point.

The east way that worked a few times was to just add the account from file > "Add account" > allow to populate> close outlook > open Outlook> delete the profiles listed in Control Panel> Mail > close outlook > go to control panel > mail > add profile name if you get the traditional mail set up use the manual set up with the same steps as above if you get the auto 365 set up just add the email back from file > add account... Upon opening it should be good to go.
Related Conversations