Azure active directory 如何在Graph API上同时基于用户资源字段和schemaExtension属性进行过滤?

Azure active directory 如何在Graph API上同时基于用户资源字段和schemaExtension属性进行过滤?,azure-active-directory,microsoft-graph-api,microsoft-graph-sdks,Azure Active Directory,Microsoft Graph Api,Microsoft Graph Sdks,我正在尝试筛选具有特定schemaExtension和assignedPlan的用户。但我收到了一个错误响应 这是,还有 反应如下所示 { "error": { "code": "Request_BadRequest", "message": "Unrecognized 'Edm.String' literal 'guid'4828c8ec-dc2e-4779-b502-87ac9ce28a

我正在尝试筛选具有特定schemaExtension和assignedPlan的用户。但我收到了一个错误响应

这是,还有

反应如下所示

{
"error": {
    "code": "Request_BadRequest",
    "message": "Unrecognized 'Edm.String' literal 'guid'4828c8ec-dc2e-4779-b502-87ac9ce28ab7'' at '39' in 'assignedPlans/any(x:x/servicePlanId eq guid'4828c8ec-dc2e-4779-b502-87ac9ce28ab7' and capabilityStatus eq 'Enabled') and e2_7a1a4a282deb46ab9b054b0186f0f945_exthpvhyp3h_imported/isImported eq true'.",
    "innerError": {
        "date": "2021-03-15T11:45:39",
        "request-id": "e36d0163-7486-4c0c-aa26-9ef2f815b416",
        "client-request-id": "3cf2d2a3-59d1-4b7a-e5ee-c54a16a82ce3"
    }
}
}


如何同时基于assignedPlans和schemaExtension进行筛选?

您可以使用以下查询筛选assignedPlans

https://graph.microsoft.com/beta/users?$count=true&$filter=assignedplan/any(a:a/servicePlanId eq bf6f5520-59e3-4f82-974b-7dbbc4fd27c7和a/capabilityStatus eq“已启用”)

添加标题
consistentylevel=final


但是您不能按照文档中的指定筛选架构扩展。从上述查询中获得结果后,使用该数据并通过编写代码对其进行过滤。

Hi,如果发布的答案解决了您的问题,请单击复选标记将其标记为答案。这样做有助于其他人找到问题的答案。到目前为止,我使用的是你给出的相同查询。但我想看看这样的查询是否可能。谢谢你的回答。