top of page

How to remove Auto-mapping for shared mailboxes in Microsoft Outlook for Microsoft Office

Updated: Jul 30, 2023




Hi friends, today I'm going to share the best way to remove Auto-mapping for shared mailboxes in Microsoft Outlook for Microsoft Office.Before we know how to to remove automapping, we need to know first why should we remove automapping.


Automapping adds all the mailboxes to a user's profile in Outlook on which the user has full access. So, if a user has access to many mailboxes then Automapping may cause issues. Hence, we need to give the full access permission with Automapping disabled.


1. For this, we will first remove the ‘Full Access’ permission from Exchange online portal or by running the below command:


So, open powershell as an admin and connect to Exchange Online PowerShell using https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps


Once connected, run the below command:

Remove-MailboxPermission -Identity emailofsharedmailbox -User emailofuser -AccessRights FullAccess

2. Then, we will check if after removing the delegation, if we are able to open the other USER’s mailbox through the office Portal.


3. Now Grant full access permissions back to the user for the shared mailbox, but don't enable automapping.

Add-MailboxPermission -Identity emailofsharedmailbox -User emailofuser  -AccessRights FullAccess -AutoMapping:$False

Note: In this command, emailofsharedmailbox represents the mailbox to which the user is granted permission and emailofuser is the mailbox of the user to whom you want to add full access permissions.


4. Below command removes auto-mapping on an existing shared mailbox and removes the auto-mapping behavior for users who have already been granted Full Access permission.

$FixAutoMapping = Get-MailboxPermission sharedmailbox | where {$_.AccessRights -eq "FullAccess" -and $_.IsInherited -eq $false} 
$FixAutoMapping | Remove-MailboxPermission
$FixAutoMapping | ForEach {Add-MailboxPermission -Identity $_.Identity -User $_.User -AccessRights:FullAccess -AutoMapping $false}

Note: After running the command, we need to wait for the replication to propagate for at least 10 minutes.


Thank you for reading. :)


1,207 views0 comments

Recent Posts

See All
bottom of page