Listing OAuth clients and checking scopes via API

Trying to pull every OAuth client from our US/Eastern org for a compliance check and verify which scopes are attached.

I ran this curl command but it’s cutting off after twenty items without a next link. GET /api/v2/oauth/clients?size=100&expand=scopes The response payload just returns “scopes”: on half the clients. Just need the full assignment data.

Studio doesn’t auto-parse JSON bodies. You’ll need to handle that manually in the snippet.

Wrap the body in JSON.parse() immediately after the call.
Access properties directly via dot notation on the resulting object.

var data = JSON.parse(response.body);
var scopes = data.scopes;