How do I add Members to a Group via Microsoft Graph API?
According to documentation for adding Member to a particular Group, it requires the call below:
POST https://graph.microsoft.com/v1.0/groups/{id}/members/$ref
Content-type: application/json
Content-length: 30
{
"@odata.id": "https://graph.microsoft.com/v1.0/users/{id}"
}
My questions lies in this API:
https://graph.microsoft.com/v1.0/groups/{id}/members/$ref
{id}=> the group id,members=> adding members to the group
Now where is the users/members data/parameter to be added or posted?
Is it "@odata.id": "https://graph.microsoft.com/v1.0/users/{id}"?
Do I post @odata.id values as a member/users parameter when adding a member to a group?