I have a Office 365 Group that I would like to add through the Microsoft Graph API. Based on the API documentation, I believe I need
POST https://graph.microsoft.com/v1.0/groups
Content-type: application/json
Content-length: 244
{
"description": "Self help community for library",
"displayName": "Library Assist",
"groupTypes": [
"Unified"
],
"mailEnabled": true,
"mailNickname": "library",
"securityEnabled": false
}
But when I try to add
"owner": [{ "@odata.id": "https://graph.microsoft.com/v1.0/users/{id}"}]
I get an error (The id is really an id that exists in the office so I don't want to put it here).
They work if I first run the create group and then the add owner but not together. Why?
Would like to make it as easy for me as possible. I'm putting postman in the tags just because that's the tools I'm currently using