Role Resource Set Bindings

The Role Resource Set Bindings API provides operations to assign members to a Custom Role that targets resources in a Resource Set. The returned Role Resource Set Binding is a single unique combination of a principal, a resource set, and a custom role. You can assign custom roles to admins who are scoped to the designated resources in a resource set.

List all Role Resource Set Bindings
OAuth 2.0: okta.roles.read

Lists all Bindings for a Resource Set with pagination support

Request
path Parameters
resourceSetIdOrLabel
required
string

id or label the Resource Set

Example: iamoJDFKaJxGIr0oamd9g
query Parameters
after
string

The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination.

Responses
200

OK

403

Forbidden

404

Not Found

429

Too Many Requests

get/api/v1/iam/resource-sets/{resourceSetIdOrLabel}/bindings
Request samples
Response samples

Create a Role Resource Set Binding
OAuth 2.0: okta.roles.manage

Creates a Binding for the Resource Set, Custom Role, and members (Users or Groups)

Request
path Parameters
resourceSetIdOrLabel
required
string

id or label the Resource Set

Example: iamoJDFKaJxGIr0oamd9g
Request Body schema: application/json
required
members
Array of strings
role
string

Unique key for the role

Responses
200

Success

400

Bad Request

403

Forbidden

404

Not Found

429

Too Many Requests

post/api/v1/iam/resource-sets/{resourceSetIdOrLabel}/bindings
Request samples
application/json
{}
Response samples

Retrieve a Role Resource Set Binding
OAuth 2.0: okta.roles.read

Retrieves the Binding of a Role (identified by roleIdOrLabel) in a Resource Set (identified by resourceSetIdOrLabel)

Request
path Parameters
resourceSetIdOrLabel
required
string

id or label the Resource Set

Example: iamoJDFKaJxGIr0oamd9g
roleIdOrLabel
required
string

id or label of the Role

Example: cr0Yq6IJxGIr0ouum0g3
Responses
200

OK

403

Forbidden

404

Not Found

429

Too Many Requests

get/api/v1/iam/resource-sets/{resourceSetIdOrLabel}/bindings/{roleIdOrLabel}
Request samples
Response samples
application/json

Delete a Role Resource Set Binding
OAuth 2.0: okta.roles.manage

Deletes a Binding of a Role (identified by roleIdOrLabel) and a Resource Set (identified by resourceSetIdOrLabel)

Request
path Parameters
resourceSetIdOrLabel
required
string

id or label the Resource Set

Example: iamoJDFKaJxGIr0oamd9g
roleIdOrLabel
required
string

id or label of the Role

Example: cr0Yq6IJxGIr0ouum0g3
Responses
204

No Content

403

Forbidden

404

Not Found

429

Too Many Requests

delete/api/v1/iam/resource-sets/{resourceSetIdOrLabel}/bindings/{roleIdOrLabel}
Request samples
Response samples
application/json
{
  • "errorCode": "E0000006",
  • "errorSummary": "You do not have permission to perform the requested action",
  • "errorLink": "E0000006",
  • "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
  • "errorCauses": [ ]
}