如何通过 Microsoft Graph API 将成员添加到组?
根据将成员添加到特定组的文档,它需要以下调用:
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}"
}
Run Code Online (Sandbox Code Playgroud)
我的问题在于这个 API:
https://graph.microsoft.com/v1.0/groups/{id}/members/$ref
Run Code Online (Sandbox Code Playgroud)
{id} => 组 ID,
members => 添加成员到组
现在要添加或发布的用户/成员数据/参数在哪里?
是 "@odata.id": "https://graph.microsoft.com/v1.0/users/{id}"吗?
@odata.id将成员添加到组时,我是否将值作为成员/用户参数发布?