'Continuation token not visible while browsing API

Continuation token is not coming while browsing below API for azure DevOps to get the project related information. It is showing data for initial 500 users only... To browse the next page, no continuation token is available. Though it is coming in Postman.... I am solving the problem using python code.... So I need continuation token programitically:

https://vssps.dev.azure.com/{ORG}/_apis/graph/users?scopeDescriptor={project_descriptor}&api-version=6.0-preview.1



Solution 1:[1]

Finally for the new REST API with api-version=6.0-preview.3. the ContinuationToken has to be URLEncoded with UTF-8 encoding before setting to query string param.

Please use below Powershell sample to encode it to check if it works for you.

$uri = "https://vsaex.dev.azure.com/{organization}/_apis/userentitlements?api-version=6.0-preview.3&continuationToken=$continuationToken"
    $result = Invoke-RestMethod -Uri $uri -Headers $headers
    $users += $result.members.user
    $continuationToken = $result.continuationToken
    $continuationToken = [System.Web.HttpUtility]::UrlEncode($continuationToken) 

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kangcheng Jin-MSFT