Azure graph api not working for previous page request (& previous-page = true)

I use azure AD and import users and groups from azure. It works great with querying the next page.

I am using avaure microsoft test azure ad. https://github.com/Azure-Samples/active-directory-dotnet-graphapi-console/blob/master/GraphConsoleAppV3/Constants.cs

But does not work with the previous page. The query I use as follows

"https://graph.windows.net/schoolneo.net/users?api-version=1.6&$top=200&$filter=accountEnabled eq true&$skiptoken=X'445370.....0'&previous-page=true"

Shown "The remote server returned an error(400). Bad request". I also checked with api version 1.5. Does not work.

Note: I am sure it has been working for a long time. Now only it does not work. Want to know if this support has changed.

Please share your concerns. !!!

+4
source share
1 answer

I got an error 400 Bad Requestand an internal message Invalid previous page search requestas shown by @ShawnTabrizi. This shows that the Azure AD Graph API is not supported previous-page=trueby query filter. If you delete a part of the filter request, the request to the previous page will work.

If you want the Azure AD Graph API to support previous page searches using a filter request, you can send feedback in here .

+1
source

Source: https://habr.com/ru/post/1681422/


All Articles