搜索网站返回403访问被拒绝

时间:2018-09-28 14:59:25

标签: sharepoint microsoft-graph

我们已经看到Microsoft Graph /sites?search端点的功能发生了变化。

在过去几天内,拨打此电话时:

https://graph.microsoft.com/v1.0/sites?search=

对于某些租户,我们现在收到:

{
    "error": {
        "code": "accessDenied",
        "message": "The caller does not have permission to perform the action.",
        "innerError": {
            "request-id": "a37ae18e-dcd2-481d-bb06-0a0f5cade4f4",
            "date": "2018-09-28T13:54:56"
        }
    }
}

我们正在使用具有以下角色的仅应用身份验证:

"roles": [
    "Directory.Read.All",
    "User.Read.All"
  ],

此呼叫所需的权限是否已更改?

1 个答案:

答案 0 :(得分:2)

According to the documentation,您需要Sites.Read.AllSites.ReadWrite.All才能使用/sites?search={query}