Okta Access Requests automate the process of requesting access to apps and resources.
Each request is associated with a request condition and sequence that determine the actions taken by Okta Access Request.
Manage this 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
List the requests made by users in your org.
Use the filter
parameter, a SCIM query string, to narrow down the results. It supports the following attributes:
status
: The status of the request. Possible values: SUBMITTED
, REJECTED
, PENDING
, APPROVED
, DENIED
, CANCELED
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=reqb0oNGTSWTBKOLGLNR |
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",
- "subject": "request-for-salesforce-xsd12345",
- "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",
- "subject": "request-for-salesforce-xsd23432",
- "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.
In general, the following information is needed to create a request:
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",
- "subject": "request-from-service-now-xsd23432",
- "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.
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",
- "subject": "request-from-service-now-xsd23432",
- "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 request. Message will be authored by the authenticated user and display as "Sent via API".
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": [ ]
}