- Create a role resource set binding
- okta.roles.manage
Creates a binding for the resource set, custom role, and members (users or groups)
Note: If you use a custom role with permissions that don't apply to the resources in the resource set, it doesn't affect the admin role. For example, the
okta.users.userprofile.managepermission gives the admin no privileges if it's granted to a resource set that only includeshttps://{yourOktaDomain}/api/v1/groups/{targetGroupId}resources. If you want the admin to be able to manage the users within the group, the resource set must include the correspondinghttps://{yourOktaDomain}/api/v1/groups/{targetGroupId}/usersresource.
- https://subdomain.okta.comhttps://subdomain.okta.com/api/v1/iam/resource-sets/{resourceSetIdOrLabel}/bindings
curl -i -X POST \
https://subdomain.okta.com/api/v1/iam/resource-sets/iamoJDFKaJxGIr0oamd9g/bindings \
-H 'Content-Type: application/json' \
-d '{
"role": "cr0Yq6IJxGIr0ouum0g3",
"members": [
"https://{yourOktaDomain}/api/v1/groups/00guaxWZ0AOa5NFAj0g3"
]
}'Success
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.
{ "_links": { "self": { … }, "bindings": { … }, "resource-set": { … } } }