Rbac
6 endpoints
Assign role to user
Assign a specific role to a user within the authenticated tenant, granting them all privileges associated with that role. Role assignments are cumulative - users can have multiple roles. This operation is automatically audited.
Request Body
github_com_skiz_limbo_internal_tenant_presentation_http_dto_request.AssignUserRoleRequestUser role assignment request
Responses
201Role assigned successfully
400Invalid request format or validation errors
401Authentication required
403Access denied - insufficient permissions
404User or role not found in tenant
409User already has this role assigned
500Internal server error
Code Examples
example.ts
typescript
1import { Limbos } from '@limbos/sdk';23const client = new Limbos({4 apiKey: process.env.LIMBOS_API_KEY,5});67const result = await client.rbac.create({8// Add required fields here 9});1011console.log(result);