Read One User OAuth Scope Consent
GET {{apiPath}}/environments/{{envID}}/users/{{userID}}/oauthConsents/{{oauthConsentID}}
The GET /environments/{{envID}}/users/{{userID}}/oauthConsents/{{oauthConsentID}}
operation returns information about the specified OAuth scope consent resource specified by its ID in the request URL.
The following query parameters are allowed in the request:
Parameter | Description |
---|---|
expand | Use expand=applications to return additional information about the associated application in the response. |
filter | Use filter=application.id eq "{{appId}}" or filter=application.name eq "{{appName}}" to filter a user's consents by application ID or by application name. |
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
expand | string | Returns additional information about the associated app in the response. | |
filter | string | Filters a user's consents by app ID or app name. |
RESPONSES
status: OK
{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/users/01dee5b5-48fa-4a6b-a574-f2ff28ab5b32/oauthConsents/9ef949b9-9911-4d36-96df-759446b15e3a"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"user":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/users/01dee5b5-48fa-4a6b-a574-f2ff28ab5b32"},"consent.revoke":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/users/01dee5b5-48fa-4a6b-a574-f2ff28ab5b32/oauthConsents/9ef949b9-9911-4d36-96df-759446b15e3a"}},"id":"9ef949b9-9911-4d36-96df-759446b15e3a","application":{"id":"b0f21e6d-6967-4454-9f80-c351b2d7a081"},"applicationName":"OIDC-Web-App_1657236350","applicationType":"PINGONE","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"user":{"id":"01dee5b5-48fa-4a6b-a574-f2ff28ab5b32"},"scope":["openid"],"browser":{"name":"Chrome","version":"100.0.4896"},"operatingSystem":{"name":"Mac OS X","version":"10.15.7"},"device":{"type":"Mac"},"location":{"remoteIp":"174.21.50.32","city":"tacoma","state":"washington","region":"pacific northwest","country":"united states"},"status":"ACCEPTED","consentedAt":"2022-08-23T22:23:34.624Z","updatedAt":"2022-08-23T22:23:34.624Z"}