使用 Microsoft Graph 将成员添加到通讯组列表
Add member to distribution list using Microsoft Graph
我正在尝试使用 Graph 将成员添加(并最终删除)到组中。如果组是Office365组我可以做,但问题是我需要将它添加到通讯组列表中。
我正在对 https://graph.microsoft.com/beta/groups/my_group_id_here/members/$ref 执行 POST 并传递以下正文:
{
"@odata.id": "https://graph.microsoft.com/beta/directoryObjects/user_id_here"
}
我收到以下回复:
{
"error": {
"code": "Request_BadRequest",
"message": "Unable to update the specified properties for objects that have originated within an external service.",
"innerError": {
"request-id": "f39af99e-2ee9-406e-b5e0-9ace5bfaf123",
"date": "2018-08-13T17:35:38"
}
}
}
有没有办法将成员添加到通讯组列表?
谢谢!
更新:
Graph API 现在支持将成员添加到通讯组列表,只要它们在云中进行管理即可。参见 Add Member
Microsoft Graph 不支持针对通讯组列表的 CRUD 操作。来自 documentation:
Use this API to add a member to an Office 365 Group, a security group, or a mail-enabled security group through the members navigation property.
我正在尝试使用 Graph 将成员添加(并最终删除)到组中。如果组是Office365组我可以做,但问题是我需要将它添加到通讯组列表中。
我正在对 https://graph.microsoft.com/beta/groups/my_group_id_here/members/$ref 执行 POST 并传递以下正文:
{
"@odata.id": "https://graph.microsoft.com/beta/directoryObjects/user_id_here"
}
我收到以下回复:
{
"error": {
"code": "Request_BadRequest",
"message": "Unable to update the specified properties for objects that have originated within an external service.",
"innerError": {
"request-id": "f39af99e-2ee9-406e-b5e0-9ace5bfaf123",
"date": "2018-08-13T17:35:38"
}
}
}
有没有办法将成员添加到通讯组列表?
谢谢!
更新: Graph API 现在支持将成员添加到通讯组列表,只要它们在云中进行管理即可。参见 Add Member
Microsoft Graph 不支持针对通讯组列表的 CRUD 操作。来自 documentation:
Use this API to add a member to an Office 365 Group, a security group, or a mail-enabled security group through the members navigation property.