我在azure活动目录中遇到以下问题,当我在Graph API查询中没有包含任何过滤器时,我可以使用previous-page=true
导航回上一页但是当我包含$filter
时在查询后退导航不起作用。如何解决这个问题?
工作查询
https://graph.windows.net/GraphDir1.onMicrosoft.com/users?&api-version=1.6&$top=8&$skiptoken=X'44537074020000253A37646432326566376132404772617068446972312E6F6E6D6963726F736F66742E636F6D29557365725F66323238316233622D663432642D346161642D616361612D38653064633438336163653600213A414155736572406772617068646972312E6F6E4D6963726F736F66742E636F6D29557365725F62393733333834392D633038372D346330622D626466362D656330393935356262343739B900000000000000000000'&previous-page=true
不工作查询
https://graph.windows.net/GraphDir1.onMicrosoft.com/users?&api-version=1.6&$top=8&$filter=startswith(displayName,'s')%20or%20startswith(userPrincipalName,'s')%20or%20startswith(mailNickname,'s')&$skiptoken=X'445370740600000000000000000000100000008EA617921A2C7B46895AE95405BD556E000000000000000000000017312E322E3834302E3131333535362E312E342E32333331'&previous-page=true
当我使用$filter
查询后退导航时,我得到的回应低于:
Error: 400 - Bad Request
See Response Headers for details.
{"odata.error":{"code":"Request_UnsupportedQuery","message":{"lang":"en","value":"Invalid previous page search request."}}}
任何解决方案?