office365 图 api 分配私有组的所有者权限

office365 graph api to assign owner rights on private groups

我想找到将特定用户添加为私有组所有者的机制。

我尝试了 MS Graph API,但看起来还有其他 api 可以分配所有者权限。

Add group owner 允许您将用户添加到 O365 组的所有者。

查看此示例:

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