Step 4: Get all scopes

GET {{apiPath}}/environments/{{envID}}/resources/{{p1ResID}}/scopes

In this step, you get a list of all scopes, and from that list you must reference the scope IDs that you want to apply to the resource access grant in Step 5. The GET /environments/{{envID}}/resources/{{resourceID}}/scopes operation returns information about the scopes associated with the resource entity ID specified in the request URL. The value for the {{resourceID}} parameter is the resource ID for the PingOne API resource you retrieved in Step 3.

The response data shows the scopes and their IDs. At a minimum, the resource application grant for this activity must have at least one PingOne scope.

Note: There are several scopes returned by this GET request. In this activity, you need only the p1:read:user scope.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring