Request conditions define what resources and access levels requesters can request from their resource catalog.
Each request condition defines the following:
See Access request conditions for more information on Access request conditions and Identity Governance.
Lists request conditions for a resource specified by resourceId
| resourceId required | string The ID of the resource in Okta instance ID format or ORN format |
A successful request condition list response
When authentication fails
When authorization fails
When the requested resource wasn't found
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
Basic request conditions that are returned from a get call
{- "data": [
- {
- "id": "rcob0oNGTSWTBKOLGLNR",
- "name": "Default resource access",
- "description": "This is a condition for requesting default resource access, access duration settings are not defined here",
- "priority": 0,
- "status": "ACTIVE",
- "requesterSettings": {
- "type": "EVERYONE"
}, - "accessScopeSettings": {
- "type": "RESOURCE_DEFAULT"
}, - "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "_links": {
}
}, - {
- "id": "rcob0oNGTSWTBKOLPGRN",
- "name": "Group resource access",
- "description": "This is a condition for requesting access to a Group in the resource",
- "priority": 0,
- "status": "ACTIVE",
- "requesterSettings": {
- "type": "GROUPS"
}, - "accessScopeSettings": {
- "type": "GROUPS"
}, - "accessDurationSettings": {
- "type": "ADMIN_FIXED_DURATION",
- "duration": "P2W"
}, - "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLBTSA",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLBTSA",
- "_links": {
}
}, - {
- "id": "rcob0oNGTSWTBKOLPGRT",
- "name": "Requester specified access",
- "description": "This is a condition for requesting time bound access set by Requester for a resource",
- "priority": 0,
- "status": "ACTIVE",
- "requesterSettings": {
- "type": "EVERYONE"
}, - "accessScopeSettings": {
- "type": "RESOURCE_DEFAULT"
}, - "accessDurationSettings": {
- "type": "REQUESTER_SPECIFIED_DURATION",
- "maximumDuration": "P2W"
}, - "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLBTSA",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLBTSA",
- "_links": {
}
}
], - "_links": {
}
}Creates a request condition to govern how a resource can be requested.
Specify the following to create a request condition:
resourceId in path)accessScopeSettings in request body)requesterSettings in request body)approvalSequenceId in request body)Any requesterSettings or accessScopeSettings parameters in the request body are validated against the resource's current request settings.
After a request condition is created successfully, its status is set to INACTIVE.
Note: You can define a maximum of 100 conditions for each resource (app).
| resourceId required | string The ID of the resource in Okta instance ID format or ORN format |
A successful response for creating request condition
An invalid request to create a request type
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 request condition allowing everyone to request permanent access to an application
{- "name": "Application | Permanent | Everyone",
- "description": "A request condition allowing everyone to request permanent access to an application",
- "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "requesterSettings": {
- "type": "EVERYONE"
}, - "accessScopeSettings": {
- "type": "RESOURCE_DEFAULT"
}, - "priority": 0
}A request condition allowing everyone to request permanent access to an application
{- "id": "rcob0oNGTSWTBKOLGLNR",
- "name": "Application | Permanent | Everyone",
- "description": "A request condition allowing everyone to request permanent access to an application",
- "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "requesterSettings": {
- "type": "EVERYONE"
}, - "accessScopeSettings": {
- "type": "RESOURCE_DEFAULT"
}, - "priority": 0,
- "status": "INACTIVE",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "_links": {
}
}Retrieves a resource request condition
| requestConditionId required | string <request-condition-id> = 20 characters The Example: rcord7d69lUIn7u5D1d5 |
| resourceId required | string The ID of the resource in Okta instance ID format or ORN format |
A successful resource request condition get response
When authentication fails
When authorization fails
When the requested resource wasn't found
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
Full representation of a request condition
{- "id": "rcob0oNGTSWTBKOLGLNR",
- "name": "Default resource access",
- "description": "This is a condition for requesting default resource access",
- "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "requesterSettings": {
- "type": "EVERYONE"
}, - "accessScopeSettings": {
- "type": "RESOURCE_DEFAULT"
}, - "accessDurationSettings": {
- "type": "ADMIN_FIXED_DURATION",
- "duration": "P2W"
}, - "priority": 0,
- "status": "ACTIVE",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "_links": {
}
}Deletes a request condition
| requestConditionId required | string <request-condition-id> = 20 characters The Example: rcord7d69lUIn7u5D1d5 |
| resourceId required | string The ID of the resource in Okta instance ID format or ORN format |
A successful request condition delete response
When authentication fails
When authorization fails
When the requested resource wasn't found
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
{- "errorCode": "E0000004",
- "errorSummary": "Authentication failed.",
- "errorLink": "E0000004",
- "errorId": "oaeWCGz73hpRCG75VHP6-RRXw",
- "errorCauses": [ ]
}Updates the request condition
Conditions can be updated while their status is ACTIVE, INACTIVE or INVALID.
An update will be rejected if it would lead to the condition entering an INVALID status.
While an update request body may not contain status, a successful update request condition operation will always result in the condition entering ACTIVE or INACTIVE status.
Any requesterSettings, accessScopeSettings in the update request body will be validated against the resource's current request settings.
| requestConditionId required | string <request-condition-id> = 20 characters The Example: rcord7d69lUIn7u5D1d5 |
| resourceId required | string The ID of the resource in Okta instance ID format or ORN format |
A successful request condition patch response
When authentication fails
When authorization fails
When the requested resource wasn't found
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
A request condition allowing everyone to request permanent access to an application
{- "name": "Application | Permanent | Everyone",
- "description": "A request condition allowing everyone to request permanent access to an application",
- "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "requesterSettings": {
- "type": "EVERYONE"
}, - "accessScopeSettings": {
- "type": "RESOURCE_DEFAULT"
}, - "priority": 0
}Full representation of a request condition
{- "id": "rcob0oNGTSWTBKOLGLNR",
- "name": "Default resource access",
- "description": "This is a condition for requesting default resource access",
- "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "requesterSettings": {
- "type": "EVERYONE"
}, - "accessScopeSettings": {
- "type": "RESOURCE_DEFAULT"
}, - "accessDurationSettings": {
- "type": "ADMIN_FIXED_DURATION",
- "duration": "P2W"
}, - "priority": 0,
- "status": "ACTIVE",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "_links": {
}
}Activates the request condition
Conditions can be activated while their status is INACTIVE.
Activating a condition allows it to provide catalog entries to endusers.
| requestConditionId required | string <request-condition-id> = 20 characters The Example: rcord7d69lUIn7u5D1d5 |
| resourceId required | string The ID of the resource in Okta instance ID format or ORN format |
A successful request condition activate response
When authentication fails
When authorization fails
When the requested resource wasn't found
A conflict request condition activate response
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
When request condition is INACTIVE, then the activate operation succeeds.
{- "id": "rcob0oNGTSWTBKOLGLNR",
- "name": "Default resource access",
- "description": "This is a condition for requesting default resource access",
- "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "requesterSettings": {
- "type": "EVERYONE"
}, - "accessScopeSettings": {
- "type": "RESOURCE_DEFAULT"
}, - "accessDurationSettings": {
- "type": "ADMIN_FIXED_DURATION",
- "duration": "P2W"
}, - "priority": 0,
- "status": "ACTIVE",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "_links": {
}
}Deactivates the request condition
Conditions can be deactivated while their status is ACTIVE.
Deactivating a condition prevents the condition from providing catalog entries to endusers.
| requestConditionId required | string <request-condition-id> = 20 characters The Example: rcord7d69lUIn7u5D1d5 |
| resourceId required | string The ID of the resource in Okta instance ID format or ORN format |
A successful request condition deactivate response
When authentication fails
When authorization fails
When the requested resource wasn't found
A conflict request condition deactivate response
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
When request condition is ACTIVE, then the deactivate operation succeeds.
{- "id": "rcob0oNGTSWTBKOLGLNR",
- "name": "Default resource access",
- "description": "This is a condition for requesting default resource access",
- "approvalSequenceId": "61eb0f06c462d20007f051ac",
- "requesterSettings": {
- "type": "EVERYONE"
}, - "accessScopeSettings": {
- "type": "RESOURCE_DEFAULT"
}, - "accessDurationSettings": {
- "type": "ADMIN_FIXED_DURATION",
- "duration": "P2W"
}, - "priority": 0,
- "status": "INACTIVE",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "_links": {
}
}