如何在 Graph API 中查询 OR 条件

问题描述 投票:0回答:1

我正在尝试运行 OR 条件来查找分配了 Microsoft 365 E5 或 Office 365 E3 许可证但无法正常工作的用户。有人可以帮忙改正吗?

https://graph.microsoft.com/v1.0/users?$filter=assignedLicenses/any(x:x/skuId eq '18181a46-0d4e-45cd-891e-60aabd171b4e' or x/skuId eq '06ebc4ee-1bb5-47dd-8120-11324bc54e06')
microsoft-graph-api azure-powershell azure-ad-graph-api microsoft-graph-sdks microsoft365
1个回答
0
投票

user
资源上的属性assignedLicenses 仅支持
eq
参数。不要在值周围使用引号。

https://graph.microsoft.com/v1.0/users?$filter=assignedLicenses/any(x:x/skuId eq 18181a46-0d4e-45cd-891e-60aabd171b4e)
© www.soinside.com 2019 - 2024. All rights reserved.