Skip to main content
POST
Assign role
Assigns a role to a user by creating a role binding. You can scope the binding to the entire tenant or to a specific organization within the tenant.

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Body

application/json
role_id
string
required

Role identifier to assign

user_id
string
required
org_id
string | null
scope_type
string

Response

Role binding created

id
string
role_id
string
principal_id
string
created_at
string