Conversion of User mailbox to shared mailbox

Hi Team,

We have a requirement to convert user mailbox to shared mailbox. We are removing all the Birthright groups which includes license grp on user termination but on doing my research found that there will be a risk of losing the mailbox after the retention period if we remove the license before converting. Can you please let me know if there is any way I can handle to remove the license group after mailbox conversion?

Thanks,
Priyanka.

Hi Priyanka,
You can achieve this using Powershell Script - AfterModify script. Please perform the below steps and let us know if you still face any issue.

Use Microsoft Graph API or PowerShell to check mailbox type. Once termination initiates, remove birthright groups except license. Initiate mailbox conversion via API/script. The script polls and checks if the mailbox type has changed to “Shared”. Once it detects the conversion, the script automatically removes the license group.

Thanks