Search code examples
office365azure-ad-graph-apioffice365api

office365 graph api to assign owner rights on private groups


I want to find mechanism to add specific users as owner of private groups.

I tried MS Graph API, but it looks like there is rest api to assign owner rights.


Solution

  • Add group owner allows you to add a user to the O365 group's owners.

    See this sample:

    POST https://graph.microsoft.com/v1.0/groups/{id}/owners/$ref
    {
      "@odata.id": "https://graph.microsoft.com/v1.0/users/{id}"
    }