Search code examples
apioffice365office365-apps

Create group using Office365 unified API returns 201 but doesn't work


I am using Office365 unified APIs preview to deal with Office 365 Groups, getting user groups endpoints works fine and returns user groups.

When I call create group endpoint, it retruns 201.created but the group doesn't exist in the office portal nor the get groups API call.

Here is the endpoint URL: https://graph.microsoft.com/beta/{MY_TENANT_NAME}/groups


Solution

  • I finally landed to a working solution.

    if you are trying to create a group, you will need to also add another directory permission (unfortunately will need admin consent):

    Read and write directory data
    

    these are very weird behaviors from Office365 unified APIs, but we should excuse the APIs as you can see "beta" inside the endpoint URL.