Forum Discussion

ArjanBroekhuizen's avatar
ArjanBroekhuizen
Brass Contributor
Aug 08, 2024

Mailbox not removed from Outlook after delegation is removed

Hi all,

I have somewhat strange issue with Outlook. An user had access to a shared mailbox via the delegation in Exchange. With auto-mapping the mailbox was visible/accessible in Outlook.

Now the delegation for the mailbox is removed, but the mailbox is still visible in Outlook. When clicking the mailbox, the user gets an error and the mailbox isn't accessible (= correct behaviour). In OWA the mailbox is not accessible, as expected.

What could be a reason that the mailbox is shown in Outlook? And how can we remove the mailbox in Outlook? I tried to make a new Outlook profile and even a new Windows profile. But without success so far.

Kind regards,
Arjan

  • Hi

    The reason the mailbox is still visible in Outlook is due to auto-mapping. When a user is granted access to a shared mailbox, Outlook receives extra information in the Autodiscover response that tells it to open the additional mailbox. Even after removing the delegation, the mailbox remains in Outlook until the Autodiscover response is updated.

    To remove the mailbox from Outlook, you need to remove the mailbox permission and then re-add the permission with the -AutoMapping parameter set to $false. This will update the Autodiscover response and remove the mailbox from Outlook.'

    Try using PowerShell commands

    there may be a delay before the change takes effect, as Outlook needs to receive the updated Autodiscover response.

    Thanks
  • Ankit's avatar
    Ankit
    Brass Contributor
    Hi

    The reason the mailbox is still visible in Outlook is due to auto-mapping. When a user is granted access to a shared mailbox, Outlook receives extra information in the Autodiscover response that tells it to open the additional mailbox. Even after removing the delegation, the mailbox remains in Outlook until the Autodiscover response is updated.

    To remove the mailbox from Outlook, you need to remove the mailbox permission and then re-add the permission with the -AutoMapping parameter set to $false. This will update the Autodiscover response and remove the mailbox from Outlook.'

    Try using PowerShell commands

    there may be a delay before the change takes effect, as Outlook needs to receive the updated Autodiscover response.

    Thanks
    • ArjanBroekhuizen's avatar
      ArjanBroekhuizen
      Brass Contributor
      Hi otx_ti295,

      Thanks for your reply!
      So, even when we remove the delegation in the Exchange Admin Center, the mapping could be remaining present in Outlook? Is this a flaw in Autodiscover? Most of the times the mailbox-mapping is removed when we remove the delegation in the Exchange Admin Center.

      I ran the Add-MailboxPermission Powershell-command with the AutoMapping parameter '$false', as you suggested. Now I will give Outlook/Autodiscover give some time to update. After that the access is removed again with the Remove-MailboxPermission command.

      Somewhere next week I will let you know the results.

      Kind regards,
      Arjan
      • ArjanBroekhuizen's avatar
        ArjanBroekhuizen
        Brass Contributor
        Hi Ankit,

        The user gave me an update about this issue. The mailboxes now removed from Outlook!
        Thanks for your help

        Kind regards,
        Arjan

Resources