Skip to main content
The rolebindings client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.
A role binding assigns a role to a user on a specific resource. Only SPACE and PROJECT resource types are supported for single-binding CRUD, and ResourceID must encode the same resource type. Only one binding per user per resource is allowed. All ID fields on role-binding requests are strict IDs — name resolution is not performed.

List Role Bindings

List returns a paginated list of role bindings for the authenticated user’s account, filtered by resource type. Defaults to a page size of 50. ResourceType is required — the zero value is rejected by the server. UserID, when non-empty, filters bindings to a specific user. Signature:
Usage Example:

Get a Role Binding

Get returns a single role binding by ID. Signature:
Usage Example:

Create a Role Binding

Create issues a POST to create a new role binding and returns the created binding. Signature:
Usage Example:

Update a Role Binding

Update changes the role assigned by an existing binding and returns the updated binding. Signature:
Usage Example:

Delete a Role Binding

Delete removes a role binding by ID. It returns only an error. Signature:
Usage Example: