【发布时间】:2019-07-12 10:42:13
【问题描述】:
我目前正在处理 Microsoft Graph API 以列出组的成员/所有者。
我有几个群组,既有成员又有所有者
我可以在 Graph API Explorer 中查看两者,.e.g
https://graph.microsoft.com/groupID/members
https://graph.microsoft.com/groupID/owners
这在浏览器中运行良好并返回组的用户集合
我有一些代码(通过 Guzzle)可以达到上述 2 个端点。我可以得到owners 的列表,但members 总是空的。
它返回以下内容(通过var_dump():
array(2) {
'@odata.context' =>
string(59)
"https://graph.microsoft.com/v1.0/$metadata#directoryObjects"
'value' =>
array(0) {
}
}
我的租户已获得完全管理员权限 (admin_consent) 以便能够处理此问题。我可以得到所有者,但没有成员,这似乎很奇怪。
谢谢
【问题讨论】:
标签: php microsoft-graph-api microsoft-graph-sdks