Share via


How to remove automapping for a shared mailbox in Outlook for Microsoft 365

Introduction

This article discusses how to remove automapping for shared mailboxes in Microsoft Outlook for Microsoft 365.

In Microsoft Outlook, Autodiscover automatically maps to any mailbox for which a user has full access permissions. Autodiscover automatically loads all mailboxes for which the user has full access permissions in the following scenarios:

  • An admin grants full access permissions for a user to access another user's mailbox.
  • The user has full access permissions to a shared mailbox.

If the user has full access permission to many mailboxes, automapping may cause performance issues when Outlook starts. For example, in some organizations, admins have full access to all user mailboxes in their organization. If this is the case, Outlook tries to open all mailboxes in the organization.

Procedure

To disable automapping on a mailbox, use Exchange Online PowerShell to remove the user's full access permissions from the mailbox, and then add the user's full access permissions back to the mailbox, but with automapping disabled.

  1. Connect to Exchange Online PowerShell.

  2. To remove the user's full access permission from the mailbox, run the following command:

    Remove-MailboxPermission -Identity <MailboxIdentity> -User <UserIdentity> -AccessRights FullAccess
    
    • MailboxIdentity is the name, alias, or email address of the mailbox where the permissions are being removed from.
    • UserIdentity is the name, alias, or email address of the mailbox user who's losing the permissions on the mailbox.

    This example removes full access permissions from Kathleen Reiter's mailbox for the admin account.

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

    Note

    After you run this command, you receive a confirmation prompt to continue. To prevent the confirmation prompt, add -Confirm:$false to the end of the command.

  3. To grant full access permissions back to the user on the mailbox with automapping disabled, run the following command:

    Add-MailboxPermission -Identity <MailboxIdentity> -User <UserIdentity> -AccessRights FullAccess -AutoMapping $false
    
    • MailboxIdentity specifies the name, alias, or email address of the mailbox where the permissions are being added.
    • UserIdentity specifies the name, alias, or email address of the mailbox user who's getting the permissions on the mailbox.

    This example adds the full access permissions to Kathleen Reiter's mailbox with automapping disabled for the admin account.

    Add-MailboxPermission -Identity [email protected] -User [email protected] -AccessRights FullAccess -AutoMapping $false
    

    After you run this command, the following output is displayed:

    Identity          User                               AccessRights    IsInherited    Deny
    --------          ----                               -----------     -----------    ----
    KathleenR         <DCServer>\<AdminSAMAccountName>   {FullAccess}    False          False
    
  4. Repeat the previous steps for every mailbox where the user has full access permission and you want to disable automapping for the mailbox.

More Information

For more information, see Disable Outlook Auto-Mapping with Full Access Mailboxes.

Still need help? Go to Microsoft Community.