gpt4 book ai didi

azure-ad-graph-api - 当指定 $filter=any 时 Skiptoken 无效

转载 作者:行者123 更新时间:2023-12-05 07:23:17 28 4
gpt4 key购买 nike

我需要让 B2C 租户的所有用户按“userIdentities”数组中的“发行者”过滤他们。我使用以下查询:

https://graph.windows.net/{{tenant}}/users?api-version=1.6&$filter=userIdentities/any(u:u/issuer eq 'disney')

问题是我可以获得第一页,但就第一个响应返回的“skipToken”而言很奇怪,我无法获得所有其他页面。这是返回“skipToken”的示例:

"odata.nextLink": "directoryObjects/$/Microsoft.DirectoryServices.User?$filter=userIdentities/any(u:u/issuer%20eq%20'disney')&$skiptoken=<b>X'0100010001000000000000000000000000000000000000'</b>"

(当运行正常查询时,skip token 长 10 倍)

当我指定简单的过滤器查询(没有“any”)时,它返回有效的“skipToken”,我可以获得所有结果。

这是 Graph API 的错误还是我做错了什么?

最佳答案

这已在 Microsoft.Graph.Core 2.0.7 中修复: https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/issues/345

关于azure-ad-graph-api - 当指定 $filter=any 时 Skiptoken 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56088639/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com