'Skiptoken is not valid when $filter=any is specified

I need to get all users from B2C tenant filtering them by 'issuer' within 'userIdentities' array. I use the following query:

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

The thing is that i can get the first page but as far as 'skipToken' returned by the first response is weird i cannot get all others. Here is an example of 'skipToken' returned:

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

(when running normal queries skip token is 10 times longer)

When i specify simple filter query (without 'any') it returns valid 'skipToken' and i can get all the results.

Is it a bug of Graph API or i'm doing smth wrong?



Solution 1:[1]

This was fixed in Microsoft.Graph.Core 2.0.7: https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/issues/345

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1