Office 365 Shared Mailbox AutoMapping

PowerShell Office 365 - Office 365 Shared Mailbox AutoMapping

Shared mailbox on Office 365 can be very useful and served as many roles. When granted with full mailbox permission, the mailbox can be automatically shown up in your Outlook without extra configuration. There used to be a setting in Office 365 admin portal that can turn this auto-mapping feature on or off but I don’t seem to be able to find it anymore.

So, here comes PowerShell again.

First of all, open a new PS session to the Office 365 tenant.

$userCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection  Import-PSSession $session 

Then, use Add-MaiboxPermission cmdlet to grant permission with the Auto-Mapping switch.

Add-MailboxPermission -Identity emailaddress -User emailaddress -AccessRights FullAccess -AutoMapping:$true

Replacing -AutoMapping:$true with -AutoMapping:$false will turn the Auto-Mapping off in Outlook.

4 thoughts on “Office 365 Shared Mailbox AutoMapping

  1. Any idea what to do when that PS doesn’t work?

    Talking to the CSP / disctributor I get m365 from, they said they ran these commands. for the specific mailbox / user. I had already added the mailbox manually, so I added some other users as members, ran the modified commands and they still didn’t get the shared mailbox to show up in outlook (and should it also show in outlook on the web? cause it isn’t).

    Remove-MailboxPermission -Identity [email protected] -User [email protected] -AccessRights FullAccess
    Add-MailboxPermission -Identity [email protected] -User [email protected] -AccessRights FullAccess -AutoMapping:$true

    Any idea? is it user error? Or autologging doesn’t really work?

    And the shared mailbox doesn’t show automatically in outlook on web either.

    1. Auto-mapping only works on Outlook desktop apps. It won’t work on Outlook web. For Outlook web, right-click Folder on the left and choose Add shared Folder.

      1. Thanks. But for Oiutlook desktop, I am seeing it’s not working (the shared mailbox has to be added manually). And that’s with outlook 2019 and 365 (are there older versions that it won’t work with?)

        It seems like it can take a day+ before it will automatically show up. Not sure if its from things I did during that day or it just takes that long?

        And also related to shared mailboxes – sending new emails from that address when you have Send As permission… after the first time choosing it from the GAL,, the address shows when you click on ‘from’. BUt choosing the address from that rather than the GAL, then send, it bounces back with ‘ This message could not be sent. You do not have the permission to send the message on behalf of the specified user. ‘

        That is the case for both distribution lists and shared mailboxes with send as permissions, days / weeks after setting up the DL or shared mailbox

Leave a Reply

Your email address will not be published. Required fields are marked *