Microsoft Graph Api Convert mailbox to shared

Christian Magalhaes 1 Reputation point
2022-09-15T18:53:43.143+00:00

Hi All,

I'm trying to convert a normal mailbox to shared mailbox using Microsoft graph API.

I was trying to update userPurpose but looks like that endpoint doesn't accept Patch as request, please find below.

https://learn.microsoft.com/en-us/graph/api/resources/userpurpose?view=graph-rest-beta

Does anyone have done it before that can help me? thanks in advance

Microsoft Security Microsoft Graph
{count} votes

4 answers

Sort by: Most helpful
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2022-09-15T19:41:09.38+00:00

    The only way to achieve this is via the Exchange Online PowerShell cmdlets, Set-Mailbox in particular. https://learn.microsoft.com/en-us/powershell/module/exchange/set-mailbox?view=exchange-ps

    2 people found this answer helpful.

  2. HarmeetSingh7172 4,826 Reputation points
    2022-09-15T19:39:34.607+00:00

    Hi @Christian Magalhaes

    Hope you're doing well.

    As far as I know, currently Microsoft Graph does not support converting Normal Mailbox to Shared Mailbox. However, you can send, read messages from Shared Mailbox but conversion of mailbox is not possible as of now.

    Since this Feature/Functionality is presently not available, you can submit a feature request idea using this support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. I will also upvote for you.

    Refer this for an alternative way-
    https://learn.microsoft.com/en-us/microsoft-365/admin/email/convert-user-mailbox-to-shared-mailbox?view=o365-worldwide

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    1 person found this answer helpful.
    0 comments No comments

  3. Kristiansen, Rune 1 Reputation point
    2022-11-18T11:56:14.72+00:00

    Hi,

    I am also having issues with shared mailboxes and your suggestion to use Exchange Online Powershell is not working for me anymore after they changed/removed features. I can get mailbox by using the get-exoMailbox but the equivalent set-exoMailbox does not exist, and also not set-mailbox. I have added exchangeOnlineManagement module and I have set execution policy.

    How would I set-mailbox using todays EXO modules?

    Thanks,
    Rune


  4. JeGO_BE 21 Reputation points
    2022-12-09T09:52:43.667+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.