图查询不再支持accountEnabled过滤器

时间:2018-05-04 11:53:47

标签: json azure-active-directory microsoft-graph

我们有一个用户查询命中了过去几个月一直在工作的/beta端点,并且在过去几天它已经停止工作并返回Authorization_RequestDenied错误。

使用Graph Explorer,我将其缩小到使用accountEnabled eq true过滤器子句。如果我删除此过滤器子句,查询将起作用。

完整查询是:

https://graph.microsoft.com/beta/users?$filter=(startswith(givenName,%27sim%27)%20or%20startswith(surname,%27sim%27)%20or%20startswith(displayName,%27sim%27))%20and%20accountEnabled%20eq%20true&$select=id,userPrincipalName,givenName,surname,displayName,mail,userType

我已经进行了快速搜索,但在更改日志中找不到任何内容。

确切的错误是:

{
    "error": {
        "code": "Authorization_RequestDenied",
        "message": "Insufficient privileges to complete the operation.",
        "innerError": {
            "request-id": "d04d57d3-6e43-4e73-860a-ef721636929b",
            "date": "2018-05-12T20:02:57"
        }
    }
}

0 个答案:

没有答案