SkipToken is not allowed after getting the next url from the /security/secureScoreControlProfiles endpoint

Dylan 10 Reputation points
2024-07-01T12:42:49.6866667+00:00

I'm hitting the endpoint https://graph.microsoft.com/v1.0/security/secureScoreControlProfiles

which works perfectly for the initial call but then I get the next url from the "@odata.nextLink" object that is returned by the /secureScoreControlProfiles endpoint and i get this error when hitting said endpoint

{"error":{"code":"","message":"The query specified in the URI is not valid. Query option 'SkipToken' is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings.","innerError":{"message":"Query option 'SkipToken' is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings.","date":"2024-07-01T12:29:27","request-id":"f1ff8c4b-9106-42bd-adb1-f0f60315e091",}}}

is there something I'm missing or a new permission that needs to be enabled?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,908 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,253 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Benjamin 0 Reputation points
    2024-07-01T12:58:21.1166667+00:00

    I'm receiving the same from today (last run was 1th of June), so there seems to have been a change in the API.

    I'm using the Microsoft Graph SDK for .NET, which seems to not have been updated. Also the docs for the API haven't been changed since last year: https://video2.skills-academy.com/en-us/graph/api/security-list-securescorecontrolprofiles?view=graph-rest-1.0&tabs=http