The Custom Role Permissions API provides operations to manage the permissions assigned to a custom role.
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": {
 }
 }
 ]
}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": {
 }
}Creates a permission (specified by permissionType) for a custom role
| object or null (PermissionConditions)  Conditions for further restricting a permission. See Permission conditions. | |
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": [ ]
}Replaces a permission (specified by permissionType) for a custom role
| object or null (PermissionConditions)  Conditions for further restricting a permission. See Permission conditions. | |
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": {
 }
}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": [ ]
}