Okta Admin Management API
/Admin Roles
//
Replace a custom role per...
OAuth 2.0 scope:
- okta.roles.manage
Replaces a permission (specified by permissionType) for a custom role
Conditions for further restricting a permission. See Permission conditions.
- https://subdomain.okta.comhttps://subdomain.okta.com/api/v1/iam/roles/{roleIdOrLabel}/permissions/{permissionType}
curl -i -X PUT \
https://subdomain.okta.com/api/v1/iam/roles/cr0Yq6IJxGIr0ouum0g3/permissions/okta.users.manage \
-H 'Content-Type: application/json' \
-d '{
"conditions": {
"include": {
"okta:ResourceAttribute/User/Profile": [
"city",
"state"
]
}
}
}'OK
Conditions for further restricting a permission. See Permission conditions.
Specifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
Response
{ "label": "okta.users.read", "conditions": { "include": { … } }, "created": "2021-02-06T16:20:57.000Z", "lastUpdated": "2021-02-06T16:20:57.000Z", "_links": { "role": { … }, "self": { … } } }