2017-02-15 72 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)? –

回答