Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Azure Active Directory: paging the filtering result, possible?

$
0
0

I created 500 users with initial letter "a" in Azure Active Directory, then perform a search

"users = (DataServiceQuery<User>)(users.Where(user => user.displayName.StartsWith('a')));"

which yields result of 100 rows, then I further use the "Continuation().NextLinkUri" trying to navigate to the next 100 users with initial letter "a", then get the exception as following

"No paging is possible with this query. Query for all resources or narrow the search scope by changing the query filter"

Example of Continuation URL: https://graph.windows.net/ad26388d-e77e-47af-a9bb-b13275b55a22/directoryObjects/$/Microsoft.WindowsAzure.ActiveDirectory.User?$filter=startswith(displayName,'a')&$skiptoken=X'2A02AABE6030EB4582D952656D7A5733'

so here is the question, is that possible to combine filter and paging within one single request? (I guess not possible, which is indicated by the exception message, but please confirm)


if it is not possible, then the code here is incorrect

http://code.msdn.microsoft.com/windowsazure/Write-Sample-App-for-79e55502

because the Continuation URL from a filtering response will always yield exception...

regards

Mark





Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>