An entitlement is a permission that allows users to take specific actions within a resource, such as an application. Manage entitlements and values with the following APIs.
See Entitlement Management for more information.
Application Administrator
okta.governance.entitlements.manage
Creates a new entitlement
The writable attributes of an entitlement
A successful entitlement creation operation
An invalid request to create or update an entitlement
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
Request body for adding an entitlement
{- "name": "License Entitlement",
- "externalValue": "license_entitlement",
- "description": "Some license entitlement",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}, - "multiValue": true,
- "dataType": "string",
- "values": [
- {
- "name": "value1",
- "description": "description for value1",
- "externalValue": "value_1"
}, - {
- "name": "value2",
- "description": "description for value2",
- "externalValue": "value_2"
}
]
}
Response for a successful entitlement creation
{- "id": "esp2lr1lavoGDYw5U8g6",
- "name": "License Entitlement",
- "externalValue": "license_entitlement",
- "description": "Some license entitlement",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}, - "multiValue": true,
- "required": false,
- "dataType": "string",
- "values": [
- {
- "id": "ent148fuJDGTsvYjP0g4",
- "name": "value1",
- "description": "description for value1",
- "externalValue": "value_1"
}, - {
- "id": "ent148gF8aZoRfFsh0g4",
- "name": "value2",
- "description": "description for value2",
- "externalValue": "value_2"
}
], - "_links": {
- "values": {
}
}, - "metadata": {
- "total": 2
}
}
Application Administrator
okta.governance.entitlements.read
Lists all entitlements specific to a resource
after | string The after cursor provided by a prior request. |
filter required | string <scim-filter> Apply various filters by using supported entitlements filtering properties. Resource filter is required before any other supported filtering. Note: Query parameter percent encoding is required. See Percent-encoding Query param: ?filter=parent.externalId eq "0oafxqCAJWWGELFTYASJ" AND parent.type eq "APPLICATION" filter=parent.externalId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20AND%20parent.type%20eq%20%22APPLICATION%22Query param: ?filter=parentResourceOrn eq "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:oidc:0oafxqCAJWWGELFTYASJ" filter=parentResourceOrn%20eq%20%22orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:oidc:0oafxqCAJWWGELFTYASJ%22Query param: ?filter=parent.externalId eq "0oafxqCAJWWGELFTYASJ" AND parent.type eq "APPLICATION" AND name sw "License" filter=parent.externalId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20AND%20parent.type%20eq%20%22APPLICATION%22%20AND%20name%20sw%20%22License%22Query param: ?filter=parent.externalId eq "0oafxqCAJWWGELFTYASJ" AND parent.type eq "APPLICATION" AND (id eq "espfxqCAJWWGELFTYASJ" OR id eq "espfxqCAJWWGELFTYASI") filter=parent.externalId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20AND%20parent.type%20eq%20%22APPLICATION%22%20AND%20%28id%20eq%20%22espfxqCAJWWGELFTYASJ%22%20OR%20id%20eq%20%22espfxqCAJWWGELFTYASI%22%29Query param: ?filter=parent.externalId eq "0oafxqCAJWWGELFTYASJ" AND parent.type eq "APPLICATION" AND externalValue eq "License" filter=parent.externalId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20AND%20parent.type%20eq%20%22APPLICATION%22%20AND%20externalValue%20eq%20%22License%22 |
limit | integer [ 1 .. 200 ] Default: 20 The maximum number of records that will be returned in a given result. |
orderBy | Array of strings = 1 items Default: ["name asc"] A field by which results can be sorted. For now, sorting by a single field is supported. Note: Query parameter percent encoding is required. See Percent-encoding Query param: ?orderBy=name asc orderBy=name%20ascQuery param: ?orderBy=created desc orderBy=created%20desc |
A successful entitlements list response
An invalid request to list entitlement-bundles
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
A list of entitlements
{- "data": [
- {
- "id": "espfxqCAJWWGELFTYASJ",
- "name": "Role",
- "externalValue": "Role",
- "description": "This is a role entitlement",
- "multiValue": true,
- "required": false,
- "dataType": "string",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}, - "_links": {
- "values": {
}
}
}, - {
- "id": "espfxqCAJWWGEGUUFASJ",
- "name": "License",
- "externalValue": "License",
- "description": "This is a license entitlement",
- "multiValue": true,
- "required": false,
- "dataType": "string",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}, - "_links": {
- "values": {
}
}
}
], - "metadata": {
- "total": 2
}
}
Application Administrator
okta.governance.entitlements.manage
Deletes entitlement
A successful entitlement delete response
When authentication fails
When authorization fails
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": [ ]
}
Application Administrator
okta.governance.entitlements.read
Retrieves a single entitlement
A successful entitlements list 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
Retrieve an entitlement response
{- "id": "espfxqCAJWWGELFTYASJ",
- "name": "Role",
- "externalValue": "Role",
- "description": "This is a role entitlement",
- "multiValue": true,
- "required": false,
- "dataType": "string",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:oidc:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}, - "values": [
- {
- "id": "entfxqCAJWWGELFTYAAA",
- "name": "Admin access",
- "description": "ability to grant an access",
- "externalValue": "admin"
}
], - "_links": {
- "values": {
}
}, - "metadata": {
- "total": 1
}
}
Application Administrator
okta.governance.entitlements.manage
Replaces an entitlement's name, description, or values. This API requires a complete list of updated values, which may present limitations for certain use cases. For more practical and flexible usage, consider using the Update the entitlement.
The writable attributes of an entitlement
dataType required | string The data type of the entitlement property. If the entitlement property is multivalued, the data type is replaced with an array. |
externalValue required | string [ 1 .. 255 ] characters The value of an entitlement property |
id required | string = 20 characters The |
multiValue required | boolean The property that determines if the entitlement property can hold multiple values. If this is set to true, the data type is replaced with an array. |
name required | string [ 1 .. 255 ] characters The display name for an entitlement property |
required | object Representation of a resource |
parentResourceOrn required | string <okta-resource-orn> The Okta App instance See the supported-resources endpoint for reference |
required | Array of objects <= 1000 items Collection of entitlement values. |
object Links available in list response | |
description | string [ 1 .. 1000 ] characters The description of an entitlement property |
object Metadata for the list response | |
required | boolean The property that determines if the entitlement property is a required attribute |
A successful entitlement update operation
An invalid request to create or update an entitlement
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
Request body for updating an entitlement
{- "id": "esp2lr1lavoGDYw5U8g6",
- "name": "License Entitlement",
- "externalValue": "license_entitlement",
- "description": "Entitlement description",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}, - "multiValue": true,
- "dataType": "string",
- "values": [
- {
- "id": "ent148gF8aZoRfFsh0g4",
- "name": "value1",
- "description": "description for value1",
- "externalValue": "value_1"
}, - {
- "id": "entotuwr1z1efm5RA1d6",
- "name": "value2",
- "description": "new value for entitlement",
- "externalValue": "value_2"
}
]
}
Response for successful entitlement update
{- "id": "esp2lr1lavoGDYw5U8g6",
- "name": "License Entitlement",
- "externalValue": "license_entitlement",
- "description": "Some license entitlement",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}, - "multiValue": true,
- "dataType": "string",
- "required": false,
- "values": [
- {
- "id": "ent148gF8aZoRfFsh0g4",
- "name": "Updated value1",
- "description": "description for value1",
- "externalValue": "value_1"
}, - {
- "id": "ent148fuJDGTsvYjP0g4",
- "name": "Updated value2",
- "description": "description for value2",
- "externalValue": "value_2"
}
], - "_links": {
- "values": {
}
}, - "metadata": {
- "total": 2
}
}
Application Administrator
okta.governance.entitlements.manage
Updates an entitlement name
, description
or a particular value
property. The values
array in the response contains only the updated entitlement values. No entitlement values are returned if the name and description is updated or values are only removed in the update.
The writable attributes of an entitlement.
A successful entitlement update operation
An invalid request to create or update an entitlement
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
Request body for updating entitlement
[- {
- "op": "ADD",
- "path": "/values/-",
- "value": {
- "name": "value1",
- "description": "description for value1",
- "externalValue": "value_1"
}, - "refType": "ENTITLEMENT-VALUE"
}, - {
- "op": "REMOVE",
- "path": "/values/ent148gF8aZoRfFsh0g4",
- "refType": "ENTITLEMENT-VALUE"
}, - {
- "op": "REPLACE",
- "path": "/values/ent148gF8aZoRfFsh0g4",
- "value": {
- "name": "value1",
- "description": "replace description for value1"
}, - "refType": "ENTITLEMENT-VALUE"
}, - {
- "op": "ADD",
- "path": "/description",
- "value": "add description for entitlement",
- "refType": "ENTITLEMENT"
}, - {
- "op": "REMOVE",
- "path": "/description",
- "refType": "ENTITLEMENT"
}, - {
- "op": "REPLACE",
- "path": "/description",
- "value": "replace description for entitlement",
- "refType": "ENTITLEMENT"
}, - {
- "op": "REPLACE",
- "path": "/name",
- "value": "replace name for entitlement",
- "refType": "ENTITLEMENT"
}
]
Response for successful entitlement update
{- "id": "esp2lr1lavoGDYw5U8g6",
- "name": "License Entitlement",
- "externalValue": "license_entitlement",
- "description": "Some license entitlement",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}, - "multiValue": true,
- "dataType": "string",
- "required": false,
- "values": [
- {
- "id": "ent148gF8aZoRfFsh0g4",
- "name": "Updated value1",
- "description": "description for value1",
- "externalValue": "value_1"
}, - {
- "id": "ent148fuJDGTsvYjP0g4",
- "name": "Updated value2",
- "description": "description for value2",
- "externalValue": "value_2"
}
], - "_links": {
- "values": {
}
}, - "metadata": {
- "total": 2
}
}
Application Administrator
okta.governance.entitlements.read
Lists all values for an entitlement
after | string The after cursor provided by a prior request. |
filter | string <scim-filter> Apply various filters by using supported entitlement values filtering properties. Note: Query parameter percent encoding is required. See Percent-encoding Query param: ?filter=name sw "License" filter=name%20sw%20%22License%22 |
limit | integer [ 1 .. 200 ] Default: 20 The maximum number of records that will be returned in a given result. |
orderBy | Array of strings = 1 items Default: ["name asc"] A field by which results can be sorted. For now, sorting by a single field is supported. Note: Query parameter percent encoding is required. See Percent-encoding Query param: ?orderBy=name asc orderBy=name%20ascQuery param: ?orderBy=created desc orderBy=created%20desc |
A successful list of entitlement values 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
A list of entitlement values
{- "data": [
- {
- "id": "entfxqCAJWWGELFTYAAA",
- "name": "Admin access",
- "description": "ability to grant an access",
- "externalValue": "admin",
- "entitlementId": "esp5zFLCIUV7Vibro0g2",
- "externalId": "75941239-123s-1245-xyz6-562fee27167r",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}
}, - {
- "id": "entfxqCAJWWFTFUUYBBB",
- "name": "Corporate License",
- "description": "Corporate License",
- "externalValue": "corporate",
- "entitlementId": "esp81PLbVQGWaklZb0g2",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}
}
], - "_links": {
}, - "metadata": {
- "total": 2
}
}
Application Administrator
okta.governance.entitlements.read
Retrieves a single entitlement value
A successful entitlement value 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
Entitlement value data
{- "id": "entfxqCAJWWGELFTYAAA",
- "name": "Admin access",
- "description": "ability to grant an access",
- "externalValue": "admin",
- "entitlementId": "esp5zFLCIUV7Vibro0g2",
- "externalId": "75941239-123s-1245-xyz6-562fee27167r",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}, - "_links": {
}
}
Application Administrator
okta.governance.entitlements.read
Lists all entitlement values
after | string The after cursor provided by a prior request. |
filter required | string <scim-filter> Apply various filters by using supported entitlements filtering properties. Resource filter is required before any other supported filtering. Note: Query parameter percent encoding is required. See Percent-encoding Query param: ?filter=parent.externalId eq "0oafxqCAJWWGELFTYASJ" AND parent.type eq "APPLICATION" filter=parent.externalId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20AND%20parent.type%20eq%20%22APPLICATION%22Query param: ?filter=parentResourceOrn eq "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:oidc:0oafxqCAJWWGELFTYASJ" filter=parentResourceOrn%20eq%20%22orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:oidc:0oafxqCAJWWGELFTYASJ%22Query param: ?filter=parent.externalId eq "0oafxqCAJWWGELFTYASJ" AND parent.type eq "APPLICATION" AND name sw "License" filter=parent.externalId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20AND%20parent.type%20eq%20%22APPLICATION%22%20AND%20name%20sw%20%22License%22Query param: ?filter=parent.externalId eq "0oafxqCAJWWGELFTYASJ" AND parent.type eq "APPLICATION" AND (entitlementId eq "espfxqCAJWWGELFTYASJ" OR entitlementId eq "espfxqCAJWWGELFTYASI") filter=parent.externalId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20AND%20parent.type%20eq%20%22APPLICATION%22%20AND%20%28entitlementId%20eq%20%22espfxqCAJWWGELFTYASJ%22%20OR%20entitlementId%20eq%20%22espfxqCAJWWGELFTYASI%22%29Query param: ?filter=parent.externalId eq "0oafxqCAJWWGELFTYASJ" AND parent.type eq "APPLICATION" AND externalValue eq "corporate" filter=parent.externalId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20AND%20parent.type%20eq%20%22APPLICATION%22%20AND%20externalValue%20eq%20%22corporate%22 |
limit | integer [ 1 .. 200 ] Default: 200 The maximum number of records that will be returned in a given result. |
orderBy | Array of strings = 1 items Default: ["id asc"] A field by which results can be sorted. For now, sorting by a single field is supported. Note: Query parameter percent encoding is required. See Percent-encoding Query param: ?orderBy=name asc orderBy=name%20ascQuery param: ?orderBy=id desc orderBy=id%20desc |
A successful list of entitlement values 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
A list of entitlement values
{- "data": [
- {
- "id": "entfxqCAJWWGELFTYAAA",
- "name": "Admin access",
- "description": "ability to grant an access",
- "externalValue": "admin",
- "entitlementId": "esp5zFLCIUV7Vibro0g2",
- "externalId": "75941239-123s-1245-xyz6-562fee27167r",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}
}, - {
- "id": "entfxqCAJWWFTFUUYBBB",
- "name": "Corporate License",
- "description": "Corporate License",
- "externalValue": "corporate",
- "entitlementId": "esp81PLbVQGWaklZb0g2",
- "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ",
- "parent": {
- "externalId": "0oafxqCAJWWGELFTYASJ",
- "type": "APPLICATION"
}
}
], - "_links": {
}, - "metadata": {
- "total": 2
}
}