2017-02-15 70 views
1

当使用图形浏览器,我可以使用“列表” API就像这样:Microsoft Graph - “列出人员”API的范围?

https://graph.microsoft.com/beta/users/<user id>/people 

哪里<user id>可以在组织中的任何用户。

但是,当我构建我自己的应用程序时,我只能在登录用户上调用List People API。在另一个用户上调用它会给我一个拒绝权限的回应。

我应该使用什么范围,以便我可以在任何用户上使用List People?

根据该列表API

"The following scopes are required to execute this API: People.Read; People.ReadWrite" 

但People.Read仅"Allows the app to read a ranked list of relevant people of the signed-in user."People.ReadWrite没有权限范围的列表上存在的文档。

+0

虽然不是一个答案,你可以提交GitHub上一个文档的问题(https://github.com/microsoftgraph/microsoft-graph-docs/issues)不正确的权限(People.ReadWrite)? –

回答