How to disable Automapping for a shared mailbox in Outlook for Office 365?

Last Updated on March 14, 2024 by Michael Morten Sonne

If you are like me, you probably use Microsoft Outlook every day at work or at home, along with some shared mailboxes.

This also applies to delegated access.

I like being able to access my shared mailboxes, but when I add my main account, the shared mailboxes are also attached to my Outlook. While that is great in some cases, having multiple e-mails in my Outlook can be extremely heavy and can create some issues (performance etc.).

In cases where the user has access to many mailboxes, this may result in performance bottlenecks when Outlook starts. As an example, some organizations allow administrators full access to all users’ mailboxes within their organization. In such cases, Outlook attempts to open all mailboxes in the organization.

Then how can we maintain access to shared/delegated mailboxes while disabling auto mapping at the same time? Fortunately, we can. We can do this with PowerShell. Let’s take a look.

Required steps

  • Open PowerShell as administrator and connect to exchange online.
  • Now, remove full access permissions for the user from the mailbox.
Remove-MailboxPermission -Identity "Mailbox ID1" -User "Mailbox ID2" -AccessRights FullAccess

IMPORTANT: In this command, <Mailbox ID1> represents the mailbox to which the user is granted permissions, and <Mailbox ID2> is the mailbox of the user from whom you want to remove full access permissions.

Here is an example:

Remove-MailboxPermission -Identity [email protected] -User [email protected] -AccessRights FullAccess

After you execute the command, select Y and hit Enter.

Now, run the command below, this will assign back Full permissions, but automapping will be disabled.

Add-MailboxPermission -Identity -User -AccessRights FullAccess -AutoMapping:$false

That should do it. Now when you open Outlook, the shared/delegated mailboxes will not be automatically attached.

Previous Article

Configure Exchange Online Certificate Based Authentication for unattended scripts

Next Article

Veeam Backup for Microsoft 365 - Why you need to back up your Microsoft 365 data!

Related Posts

Discover more from Sonne´s Cloud

Subscribe now to keep reading and get access to the full archive 🤝🧑‍💻

Join 20 other subscribers