The Custom Role Permissions API provides operations to manage the permissions assigned to a Custom Role.
okta.roles.read
Lists all permissions for a Custom Role by roleIdOrLabel
OK
Forbidden
Not Found
Too Many Requests
{- "permissions": [
- {
- "label": "okta.users.create",
- "created": "2021-02-06T16:20:57.000Z",
- "lastUpdated": "2021-02-06T16:20:57.000Z",
- "_links": {
}
}, - {
- "label": "okta.users.read",
- "created": "2021-02-06T16:20:57.000Z",
- "lastUpdated": "2021-02-06T16:20:57.000Z",
- "conditions": {
- "include": {
- "okta:ResourceAttribute/User/Profile": [
- "city",
- "state",
- "zipCode"
]
}
}, - "_links": {
}
}, - {
- "label": "okta.groups.read",
- "created": "2021-02-06T16:20:57.000Z",
- "lastUpdated": "2021-02-06T16:20:57.000Z",
- "_links": {
}
}, - {
- "label": "okta.users.userprofile.manage",
- "created": "2021-02-06T16:20:57.000Z",
- "lastUpdated": "2021-02-06T16:20:57.000Z",
- "_links": {
}
}
]
}
okta.roles.read
Retrieves a permission (identified by permissionType
) for a Custom Role
OK
Forbidden
Not Found
Too Many Requests
{- "label": "okta.users.manage",
- "created": "2021-02-06T16:20:57.000Z",
- "lastUpdated": "2021-02-06T16:20:57.000Z",
- "_links": {
}
}
okta.roles.manage
Creates a permission (specified by permissionType
) for a Custom Role
object or null (PermissionConditions) Conditions for further restricting a permission | |
No Content
Bad Request
Forbidden
Not Found
Too Many Requests
{- "conditions": {
- "include": {
- "okta:ResourceAttribute/User/Profile": [
- "city",
- "state"
]
}
}
}
{- "errorCode": "E0000001",
- "errorSummary": "Api validation failed: {0}",
- "errorLink": "E0000001",
- "errorId": "sampleiCF-8D5rLW6myqiPItW",
- "errorCauses": [ ]
}
okta.roles.manage
Replaces a permission (specified by permissionType
) for a Custom Role
object or null (PermissionConditions) Conditions for further restricting a permission | |
OK
Bad Request
Forbidden
Not Found
Too Many Requests
{- "conditions": {
- "include": {
- "okta:ResourceAttribute/User/Profile": [
- "city",
- "state"
]
}
}
}
{- "label": "okta.users.read",
- "conditions": {
- "include": {
- "okta:ResourceAttribute/User/Profile": [
- "city",
- "state",
- "zipCode"
]
}
}, - "created": "2021-02-06T16:20:57.000Z",
- "lastUpdated": "2021-02-06T16:20:57.000Z",
- "_links": {
}
}
okta.roles.manage
Deletes a permission (identified by permissionType
) from a Custom Role
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}