我正在尝试下面的请求。按分配计划属性中的 servicePlanId 过滤用户,尝试过滤“电话系统”计划。
https://graph.microsoft.com/beta/users?$filter=assignedPlans/any(x:x/servicePlanId eq 4828c8ec-dc2e-4779-b502-87ac9ce28ab7)
并在响应正文中收到下面给出的错误消息。
"message": "Complex query on property assignedPlans is not supported.",
我怎样才能以这种方式过滤用户?有什么方法可以使用 ms-graph-java-sdk 实现此目的吗?
这是当前 API 的限制。有更新的引擎 https://developer.microsoft.com/en-us/identity/blogs/microsoft-graph-advanced-queries-for-directory-objects-are-now-generally-available/允许更复杂的查询。要访问它,您需要添加ConsistencyLevel
带有值的标题eventual
并添加$count=true
作为查询参数。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)