Unable to remove Auto-Mapped Mailbox (terminated and no licensed assigned)

Santosh R 1 Reputation point
2020-08-02T19:02:44.133+00:00

I have a user who has an automapped mailbox and that mailbox has been termniated and no license assigned. how do i remove it.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,368 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 145K Reputation points MVP
    2020-08-02T21:19:58.29+00:00

    What have you tried already?
    That would help in suggestions

    Some things to try:

    1. Remove-MailboxPermission -Identity <Active User Mailbox> -User <termed Account> -AccessRights FullAccess -InheritanceType All
    2. ReLicense The termed user temporarily and run that command above if it doesn't work
    3. If 2 doesnt work after applying a license, keep the license applied temporarily and try: Remove-MailboxPermission <termed Account> –ClearAutoMapping
    4. If that doesnt work, try: Remove-MailboxPermission <termed Account> -ResetDefault
    0 comments No comments

  2. Lydia Zhou - MSFT 2,371 Reputation points Microsoft Employee
    2020-08-03T04:22:55.617+00:00

    Do you mean the mailbox still can be access from the user with Full Access permission before?

    After removing the permission as mentioned by AD-7937, you can use Outlook Online mode or create a new Outlook profile to check. It also may take some time for the modification to take effect.

    You can use the following command to add the full access permission back without Automapping, and remove it again. Wait for some time, then check Outlook:

    Add-MailboxPermission -Identity username -User username -AccessRights FullAccess -AutoMapping $false
    Remove-MailboxPermission -Identity username -User username -AccessRights FullAccess