Looks like this is the same issue https://github.com/microsoftgraph/microsoft-graph-docs/issues/11446
Graph API, Query Option "SkipToken" is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings
Using Powershell with http request Graph API.
General URL requested:
GET /teams/{id}/channels/{id}/messages
It has been running months without problems.
until it showed an error at this morning as below:
Query Option "SkipToken" is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings
It seems the "SkipToken" became invalid, as the commands are requesting NextPage,
Since the Graph API requesting script has been working fine, and referral to the below QA,
I also can't find where to set 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings according to the error message.
Is there anything we need to know about changing from MS side?
3 additional answers
Sort by: Most helpful
-
Silva, Felipe 1 Reputation point
2021-01-29T12:36:57.567+00:00 This also seems to affect other endpoints:
GET /groups/{id}/members
We're currently having issues to fetch the entire list of members from a team, when there are more than one page in the results.
The response has a link to the next page "@odata.nextLink" with a "$skiptoken" query parameter, but when the request is done using the new link, it fails with the same error reported:Query option 'SkipToken' is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings."
-
Eric Chen 96 Reputation points
2021-02-01T04:46:45.293+00:00 Update:
The issue has gone at the after day, it's fine these days, and we are using the Graph API Beta version. -
Rik Vercauteren 11 Reputation points
2021-02-02T19:39:14.567+00:00 Same problem here.
Larger result sets trow the exeption, smalls resultsets work fine.