query https://graph.microsoft.com/v1.0/users?$select=id&$expand=manager没有返回任何关于经理的信息!(使用测试版的结果相同)
有没有使用图形API获取管理器导航属性的解决方案?
发布于 2017-04-11 02:47:57
目前似乎不支持此方案。
您必须执行多个调用才能获取管理器属性。
1)获取用户列表:https://graph.microsoft.com/v1.0/users
2)每个用户的Get the manager https://graph.microsoft.com/v1.0/users/f6672f23-134d-47a1-8da8-a0671f3cf3f3/manager
发布于 2019-07-22 19:20:56
这似乎在beta端点上工作得很好。在Graph Explorer https://developer.microsoft.com/en-us/graph/graph-explorer中尝试以下示例
https://graph.microsoft.com/beta/users?$expand=manager但是其他一些查询并不像预期的那样工作,所以在使用select时要小心:
https://graph.microsoft.com/beta/users?$expand=manager($select=id,displayName)发布于 2019-10-01 04:23:31
此功能($expand=manager)目前仅在/beta版本中受支持。我们希望在今年晚些时候的v1.0中启用它。
请使用/beta评估此新功能,并让我们了解您的反馈。
https://stackoverflow.com/questions/43328466
复制相似问题