Okta Access Requests automate the process of requesting access to resources managed by access request conditions.
Access request conditions define the resource to access, who can request access, length of access, and the approval sequence. For more information, see Access request conditions. See also the following APIs: Request Conditions and Request Sequences.
Manage the access request process directly with the following request APIs.
See Access Requests for more information on Access Requests and Identity Governance.
Access Requests Administrator
okta.accessRequests.request.read
Lists the requests made by users in your org
You can use this endpoint to retrieve all access requests managed by access request conditions.
The filter
parameter, a SCIM query string, supports the following attributes to narrow down the results:
status
: The status of the request. Possible values: SUBMITTED
, REJECTED
, PENDING
, APPROVED
, DENIED
, CANCELED
, EXPIRED
lastUpdated
: The last updated time of the requestrequestedFor
: The Okta user ID for whom the request is maderesourceId
: The Okta resource ID for which the request is maderesourceType
: The type of resource for which the request is made. Possible values: APPLICATION
accessScopeId
: The ID of the resource access scope for which the request is madeaccessScopeType
: The type of the resource access scope for which the request is made. Possible values: ENTITLEMENT_BUNDLE
, GROUP
, APPLICATION
Pagination parameters are accepted, and standard link headers are in the response.
after | string <rcar-request-id> = 20 characters The after cursor provided by a prior request. Example: after=reqp1pmpjhVdGEcVK1d5 |
filter | string <scim-filter> Apply various filters by using supported request filtering properties. Note: Query parameter percent encoding is required. See Percent-encoding Query param: ?filter=status eq "APPROVED" filter=status%20eq%20%22APPROVED%22Query param: ?filter=lastUpdated gt "2022-05-24T14:15:22Z" filter=lastUpdated%20gt%20%222022-05-24T14%3A15%3A22Z%22Query param: ?filter=resourceId eq "0oafxqCAJWWGELFTYASJ" filter=resourceId%20eq%20%220oafxqCAJWWGELFTYASJ%22Query param: ?filter=resourceType eq "APPLICATION" filter=resourceType%20eq%20%22APPLICATION%22Query param: ?filter=accessScopeId eq "0oafxqCAJWWGELFTYASJ" filter=resourceId%20eq%20%220oafxqCAJWWGELFTYASJ%22Query param: ?filter=accessScopeType eq "APPLICATION" filter=accessScopeType%20eq%20%22APPLICATION%22Query param: ?filter=requestedFor eq "00ub0oNGTSWTBKOLGLNR" filter=requestedFor%20eq%20%2200ub0oNGTSWTBKOLGLNR%22Query param: ?filter=status eq "RESOLVED" AND resourceId eq "0oafxqCAJWWGELFTYASJ" filter=status%20eq%20%22RESOLVED%22%20AND%20resourceId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20 |
limit | integer [ 1 .. 200 ] Default: 20 The maximum number of records that will be returned in a given result. |
orderBy | string <order-by> Apply an ordering of requests by specifying a supported request property name with Note: Query parameter percent encoding is required. See Percent-encoding Query param: ?orderBy=created desc orderBy=created%20descQuery param: ?orderBy=lastUpdated desc orderBy=lastUpdated%20desc |
A successful request list response
An invalid request to list requests
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
A list request response with no filter
{- "data": [
- {
- "id": "req42kjDgk1EubTwo0g4",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2022-05-05T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "status": "APPROVED",
- "resolved": "2022-05-05T14:14:22Z",
- "grantStatus": "GRANTED",
- "granted": "2022-05-05T14:15:22Z",
- "requestedBy": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}, - "requestedFor": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}, - "requested": {
- "entryId": "cenb0oADRXTBKOLGLNR",
- "accessScopeId": "0oafxqCAJWWGELFTYASJ",
- "accessScopeType": "APPLICATION",
- "resourceId": "0oafxqCAJWWGELFTYASJ",
- "resourceType": "APPLICATION"
}, - "_links": {
- "catalogEntry": {
- "type": "application/json"
}, - "approvalSequence": {
- "type": "application/json"
}, - "requestCondition": {
- "type": "application/json"
}, - "self": {
- "type": "application/json"
}
}
}, - {
- "id": "req42kjDgk1EubTwo0g4",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2022-05-05T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "status": "PENDING",
- "requestedBy": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}, - "requestedFor": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}, - "requested": {
- "entryId": "cenb0oADRXTBKOLGLNR",
- "accessScopeId": "0oafxqCAJWWGELFTYASJ",
- "accessScopeType": "APPLICATION",
- "resourceId": "0oafxqCAJWWGELFTYASJ",
- "resourceType": "APPLICATION"
}, - "_links": {
- "catalogEntry": {
- "type": "application/json"
}, - "approvalSequence": {
- "type": "application/json"
}, - "requestCondition": {
- "type": "application/json"
}, - "self": {
- "type": "application/json"
}
}
}
], - "_links": {
}
}
Access Requests Administrator
okta.accessRequests.request.manage
Creates a resource access request for a given user
You can use this endpoint to create access requests managed by access request conditions.
If requestedBy
and requestedFor
are not the same, you must also enable the requestOnBehalfOfSettings
property on the Access request settings. See Request Settings.
As part of the payload for the Create a request endpoint, include the following information:
requestedFor.externalId
parameter.requested.entryId
parameter.requesterFieldValues
array. See Retrieve an entry's request fields.requestedBy.externalId
parameter in the request body.The writable attributes of a request
required | any A representation of a resource that can be requested for access. Note: The resources available for the request are subject to their permission settings. For example, the Okta Admin App can only be requested by Super Admin users. |
required | object A representation of a principal |
object A representation of a principal | |
Array of objects The requester input fields required by the approval system. Note: The fields required are determined by the approval system. For the Okta approval system, the required fields are defined in the approval sequence. Ensure that the requester input fields match up with this definition to avoid request approval flow failure. For external approval systems, the requester input fields are for recording purposes only and do not affect the approval process. |
Response when create request is accepted
An invalid request to create a request
When authentication fails
When authorization fails
A conflict with the request type prevents the create request operation
When there is a server fault due to an unexpected error
When requested.type
is CATALOG_ENTRY
, requestApproval.type
is OKTA
with no requester input fields
{- "requested": {
- "type": "CATALOG_ENTRY",
- "entryId": "cen3qpimoKc7wCPyx8g6"
}, - "requestedFor": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}
}
Request access for authenticated user by omitting requesterUserIds
{- "id": "req42kjDgk1EubTwo0g4",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2022-05-05T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "status": "SUBMITTED",
- "requestedBy": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}, - "requestedFor": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}, - "requested": {
- "entryId": "cenb0oADRXTBKOLGLNR",
- "resourceId": "0oafxqCAJWWGELFTYASJ",
- "resourceType": "APPLICATION",
- "accessScopeType": "APPLICATION",
- "accessScopeId": "0oafxqCAJWWGELFTYASJ"
}, - "_links": {
- "catalogEntry": {
- "type": "application/json"
}, - "self": {
- "type": "application/json"
}
}
}
Access Requests Administrator
okta.accessRequests.request.read
Retrieves the full representation of a specific request
You can use this endpoint to retrieve access requests managed by access request conditions.
More information is returned than the abbreviated representation in a List requests operation.
A successful get request response
When authentication fails
When authorization fails
When the requested resource was not found
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
Submitted requests can't yet have an approvalSequenceId
or requestConditionId
.
{- "id": "req42kjDgk1EubTwo0g4",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2022-05-05T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "status": "SUBMITTED",
- "requestedBy": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}, - "requestedFor": {
- "type": "OKTA_USER",
- "externalId": "00ub0oNGTSWTBKOLGLNR"
}, - "requesterFieldValues": [
- {
- "id": "05c87fe9-11f6-4d40-a033-b155b39dcdbe",
- "label": "What is the business justification for the request?",
- "type": "TEXT",
- "value": "I need access to complete a task."
}
], - "requested": {
- "entryId": "cenb0oADRXTBKOLGLNR",
- "resourceId": "0oafxqCAJWWGELFTYASJ",
- "resourceType": "APPLICATION",
- "accessScopeId": "0oafxqCAJWWGELFTYASJ",
- "accessScopeType": "APPLICATION"
}, - "_links": {
- "catalogEntry": {
- "type": "application/json"
}, - "self": {
- "type": "application/json"
}
}
}
Access Requests Administrator
okta.accessRequests.request.manage
Creates a message to add context to the Access requests using request conditions and sequences. The message appears in the Requester section of the Access Requests console, and the message is authored by the admin user ID calling the endpoint.
The writable attributes of a request message
A successful create request message response
When authentication fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
Add request message for authenticated user visible to all
{- "message": "Contact admin@atko.com for any additional assistance needed with this request."
}
{- "errorCode": "E0000004",
- "errorSummary": "Authentication failed.",
- "errorLink": "E0000004",
- "errorId": "oaeWCGz73hpRCG75VHP6-RRXw",
- "errorCauses": [ ]
}