Exchange Hybrid / Office 365: Cannot delete shared mailbox

When you try to delete a shared mailbox, which is placed in Office 365 (Exchange Online), and you are running Hyrbid, you may see this:

The following error occurred during validation in agent ‘Windows LiveId Agent’: ‘Unable to perform the save operation. ‘TESTDELT’ is not within a valid server write scope.’

Then when you try to delete it from the ECP on the on-premise Exchange server:
… “isn’t a mailbox user.”

Workaround

Use powershell on the on-premise Exchange:
Remove-remotemailbox –identity testdelt@domain.com

Run AAD Connect delta sync.

You could also delete the user account, for the shared mailbox, and force a AAD Connect delta sync.

3 Comments

  1. Anthony

    Worked perfect. Thanks for the tip!

    Reply
  2. Ian L

    Just be aware Remove-RemoteMailbox will delete the AD account.

    Reply
    1. Martin (Post author)

      Hi Ian,

      Are you running hybrid og just Azure AD, because in my example it’s hybrid and the on-prem AD user is not deleted.

      Luckily you have the “deleted users” menu item in Azure AD 🙂

      Best regards Martin

      Reply

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close