The Delegates API allows admins to view governance delegates for a principal (for example, an Okta user). Admins can appoint delegates to perform governance tasks and end users can appoint delegates for their own governance tasks.
Lists all delegate appointments in your org.
You can filter delegate appointments for a specific user with the filter
query parameter.
You can also manage the number of records in the response with the limit
and after
query parameters.
The following are request examples with query parameters:
/governance/api/v1/delegates?limit=20
/governance/api/v1/delegates?limit=10&after=gda123ABCXYZ456DEF
delegatorId
equals 00ub0oNGTSWTBKOLAAAA
or 00u2lxfQaw8WRlkQt0g4
/governance/api/v1/delegates?filter=(delegatorId%20eq%20%2200ub0oNGTSWTBKOLGLNR%22%20OR%20delegatorId%20eq%20%2200ub0oNGTSWTBKOLGLNS%22)&limit=2
after | string The pagination cursor that points to the last record of the previous request. Example: after=00u68w6vzKLultXS97g6 |
filter | string Filter expression for retrieving delegates based on specific criteria.
Only the Example: filter=delegatorId eq "00ub0oNGTSWTBKOLGLNR" OR delegatorId eq "00ub0oNGTSWTBKOLGLNS" |
limit | integer [ 1 .. 200 ] Default: 20 The maximum number of records returned in a response |
A successful response
An invalid list request
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
{- "data": [
- {
- "id": "gda123ABCXYZ456DEF",
- "delegate": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}, - "delegator": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLAAAA"
}, - "note": "Johnny Appleseed is on parental leave",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR"
}, - {
- "id": "gda123ABCXYZ456DEF",
- "delegate": {
- "type": "OKTA_USER",
- "externalId": "00u109dSBQX9e9XYS0g4"
}, - "delegator": {
- "type": "OKTA_USER",
- "externalId": "00u2lxfQaw8WRlkQt0g4"
}, - "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-28T14:15:22Z",
- "note": "Mary Lamb is on holiday",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00u2lxfQaw8WRlkQt0g4",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00u2lxfQaw8WRlkQt0g4"
}
],
}