Dan Djurasovic Blog
  • SSH
  • Linux
Dan Djurasovic Blog
  • SSH
  • Linux
May 10

How to convert Office 365 mailbox to shared mailbox if a mailbox is synced using AD Connect.

  • 10/05/2019
  • Dan Djurasovic
  • 1 Comment

In this article, we will explain how to properly convert Exchange Online Mailbox to Shared Mailbox.
There is little of a workaround if you are using AD Connect to sync local identities to Azure AD and Office 365. 


Microsoft recommendation is that you move the user mailbox back to on-premises, convert the user mailbox to a shared mailbox, and then move the shared mailbox back to the cloud.
https://docs.microsoft.com/en-us/office365/admin/email/convert-user-mailbox-to-shared-mailbox?view=o365-worldwide

Let me show you how you can accomplish the same result without performing migration back to on-premises and back to Exchange Online.

 

We have Remote Mailbox object in local on-premises exchange server. 

On-Premises Exchange Admin center 

We have a regular mailbox in Exchange Online which is sync from On-Premises using AD Connect 

Exchange Online admin Center 

 

If we try to change mailbox type using Set-RemoteMailbox on local Onprem server, we will get following error:

Set-RemoteMailbox TestShared -Type Shared
Cannot process argument transformation on parameter ‘Type’. Cannot convert value “Shared” to type
“Microsoft.Exchange.Management.RecipientTasks.ConvertibleRemoteMailboxSubType”. Error: “Unable to match the identifier name Shared
to a valid enumerator name. Specify one of the following enumerator names and try again: Regular, Room, Equipment”
+ CategoryInfo : InvalidData: (:) [Set-RemoteMailbox], ParameterBindin…mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-RemoteMailbox + PSComputerName : ex13.9tech.ca

The only way to change mailbox type to a shared mailbox is to perform this couple steps.

 

Here is a proper tested procedure:

Login to Office 365 portal, navigate to Exchange Online, select your mailbox, press Convert to Shared Mailbox on the right tab. 

The mailbox will be converted in couple second to the shared mailbox as you can see on Office 365 portal. 

 

But if you log in to local on-prem exchange server, a mailbox is still showing it is a regular mailbox.

 

To convert this object from the regular mailbox to shared we need to run that two PowerShell command locally on-premises to change attributes of an object in local AD which is linked to Exchange Online Mailbox 

Set-ADUser -identity TestShared -Replace @{msExchRemoteRecipientType=”100”}
Set-ADUser -identity TestShared -Replace @{msExchRecipientTypeDetails=”34359738368”}

Refresh screen Exchange admin Center on-premises and your Office 365  mailbox will be moved to Shared Mailbox

 



Now you can remove Office 365 license from Office 365 mailbox.

Do not delete local AD account which was linked to a shared mailbox. Deleting account will delete a shared mailbox in Office 365. 

My recommendation is just to disable the account.

  • LinkedIn
  • E-Mail

About The Author

Dan is an Azure Technical Advisor, with over a dozen years of IT experience, specializing in Microsoft Office 365, Exchange Server Azure IaaS and Active Directory.

1 Comment

  1. Sebastien Legeay
    29/06/2020 at 10:43 · Reply

    Hi Dan,
    There is a solution to use Azure AD Connect to do it automaticaly ?
    Example : member of a security groupe => convert to shared mailbox.

Leave a reply Cancel reply

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.

Recent Posts

  • Which USB charger and cable can supply max power to your iPhone or Ipad?
  • Create Azure Policy Assignment to block the creation of expensive VMs and block creation of certain resource types
  • Enable and Configure Azure Monitoring and alerting using PowerShell Script.
  • Enable Monitoring and Alerting in Azure using Portal Part 1
  • Configure Windows virtual machine in Azure using Azure AD authentication and RDP.

Recent Comments

  • George Ewusi on How to setup Azure Active Directory Domain Services
  • Vince on Enable and Configure Azure Monitoring and alerting using PowerShell Script.
  • Herman on Create Azure Policy to limit VNet Address Space creation to certain address spaces only
  • Name (required)Pouya Panahy on Migrate physical server to Azure VM using Disk2VHD tool and Add-AzureRmVhd command
  • Dan Djurasovic on Migrate physical server to Azure VM using Disk2VHD tool and Add-AzureRmVhd command

Archives

  • March 2023
  • July 2022
  • December 2021
  • October 2021
  • June 2021
  • June 2020
  • October 2019
  • June 2019
  • May 2019
  • December 2018
  • November 2018
  • June 2018
  • July 2017
  • January 2017
  • December 2016
  • March 2014
© 2016 djurasovic.com