【问题标题】:Microsoft Graph group membersMicrosoft Graph 组成员
【发布时间】: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


    【解决方案1】:

    我认为您正在尝试使用此 URL https://graph.microsoft.com/groupID/members 获取 group member,这似乎不正确。

    请在Microsoft Graph网址下方试试

    https://graph.microsoft.com/v1.0/groups/b4699e9c-6b78-Your_Group_ID_39cee27b53/members
    

    查看屏幕截图:

    详情可以参考official docs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多