【问题标题】:Unsupported or invalid query filter clause specified for property 'visibility' of resource 'Group'为资源“组”的属性“可见性”指定了不受支持或无效的查询过滤器子句
【发布时间】:2020-04-27 15:01:42
【问题描述】:

当我尝试将$filter 子句应用于/beta/groups 时,如下所示:

$filter=resourceProvisioningOptions/Any(x:x eq 'Team') and visibility eq 'Private'

我收到以下错误:

{
    "error": {
        "code": "Request_UnsupportedQuery",
        "message": "Unsupported or invalid query filter clause specified for property 'visibility' of resource 'Group'.",
        "innerError": {
            "request-id": "eb6a7c7e-96da-4358-871d-e20ee5f82e2e",
            "date": "2020-01-09T23:25:01"
        }
    }
}

我做错了什么?

【问题讨论】:

  • 我也有同样的问题。我从 microsoft 的文档中复制了您使用的 url,用于使用 ms 图表列出团队网站,但它根本不起作用。

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


【解决方案1】:

$filter 子句不支持某些字段。 visibility 属性就是这样一个例子。

有关哪些属性支持$filter 的详细信息,请参阅Group documentation。可过滤的属性,例如 displayName,将其包含在属性描述中:

默认返回。支持$filter$orderby

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-24
    • 1970-01-01
    • 1970-01-01
    • 2019-05-09
    相关资源
    最近更新 更多