Graph and PowerShell Blog | About | Links
Cannot map new Shared Mailboxes in O365
06-Dec-23

After migrating all useers and shared mailboxes to O365, I updated my creation scripts so that any new shared mailboxes would be created on-prem using the new-remotemailbox command. This means the mailbox has an AD object on-prem but the mailbox is already migrated to O365.

All good and working, following Microsoft's best practices until a user compained that the mailbox was not auto-mapped in their Outlook. So to troubleshoot I checked first if the mailbox opened in OWA - it did. Next, based on this forum thread I checked AutoDiscover, the mailbox was listed as an AlternativeMailbox.

↑ Our Shared Mailbox is correctly listed as an AlternativeMailbox.

So why wouldn't Outlook map the mailbox? A common issue after moving to O365 is that you need to recreate the Outlook profile before all mailboxes map, but in this case it still didn't help. So next to check was the AutoDiscover record for the shared mailbox itself. You enter the shared mailbox address in the Wizard and leave the password blank, when you are challenged for credentials use your own credentials which should have full access to the mailbox.

We found that mailboxes migrated from Exchange on-prem could eventually get their AutoDiscover settings after entering credentials 3 times, but for shared mailboxes created via new-remotemailbox the AutoDiscover would fail.

↑ AutoDiscover for our Shared Mailbox fails.

In the end the fix for this was straight forward, run Outlook in safe mode once and after that the mailboxes remain mapped. I didn't get the root cause of this but the fix was manageable even for a large amount of users.

Additional Articles:
https://learn.microsoft.com/en-us/exchange/troubleshoot/user-and-shared-mailboxes/cannot-access-hidden-mailbox-in-outlook-after-migration