Microsoft Graph API - 列出拥有 OneDrive 许可证的所有用户

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

我想列出所有拥有 OneDrive 许可证的用户。 我正在使用此 URL,但不起作用。

https://graph.microsoft.com/v1.0/users?$filter=assignedLicenses/any(x:x/skuId eq 4b585984-651b-448a-9e53-3b10f069cf7f or x/skuId eq c7df2760-2c81-4ef7-b578-5b5392b571df)

你知道该怎么做吗?

graph microsoft-graph-api
1个回答
0
投票

不幸的是,不支持对分配的许可证属性进行复杂的查询(无论您在上面尝试执行什么操作)。如果这样做,API 将抛出错误:

不支持对属性signedLicenses进行复杂查询

据说我可以看到它适用于简单的过滤器,例如,

https://graph.microsoft.com/v1.0/users?$filter=assignedLicenses/any(x:x/skuId eq 4b585984-651b-448a-9e53-3b10f069cf7f)
© www.soinside.com 2019 - 2024. All rights reserved.