Implement $skip for users api or provide previous link
Pagination issue. There is no way to redirect to previous page If we use $top parameter, it provides next page url using which we can go to next page. We also can not use $skip parameter when we want to get users of an organization. Please provide $skip to use with users api, or provide previous link with $top parameter
Matt V commented
For groups API as well, please
Abhishek Kumbhaj commented
what's the update on this ?
Stephan Steiner commented
I think I can expand on that. when you do a search say for the first 5 users that are enabled, you'd do something like this:
your response wll contain this odata tag:
@odata.nextLink=https://graph.microsoft.com/v1.0/users?$count=true&$filter=accountEnabled+eq+true&$top=5&$skiptoken=<some token here>
So, following that link, you'd get the next 5 users, and so on util you have all the users.
Now, the request is to support $skip.. so I could immediately load users 5-10 using this syntax
I don't think you'd even need a previous link.. getting the previous page for this request would simply be
(or leave out the skip tag altogether).