Skip to main content
The role_bindings client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.
Role bindings assign a role to a user on a specific resource (SPACE or PROJECT). Attempting to create a binding when one already exists for the user on the resource raises an error (HTTP 409 Conflict).

List Role Bindings

List role bindings for your account, filtered by resource type. resource_type is required; optionally filter to a single user with user_id. To list a service key’s bindings, pass its bot user’s ID (bot_user.id from api_keys.create_service_key or api_keys.list). The server enforces an upper bound of 100 on limit.
For details on pagination, field introspection, and data conversion (to dict/JSON/DataFrame), see Response Objects.

Create a Role Binding

Assign a role to a user on a resource. Only one binding per user per resource is allowed. resource_id must identify a resource of the type given by resource_type. For a service key, user_id is the key’s bot user ID (bot_user.id), not the ID of the person who created the key.

Get a Role Binding

Update a Role Binding

Only the role_id can be changed. The user, resource type, and resource ID remain the same.

Delete a Role Binding

Last modified on December 2, 2026