permissions
Get User Roles
List the roles assigned to a specific user.
The authenticated user must have user-management permission in the tenant.
Path Parameters
- tenant_id (UUID): The UUID of the tenant
- user_id (UUID): The UUID of the user whose roles to list (find user ids via GET /api/v1/permissions/tenants/{tenant_id}/users)
Response
Returns a JSON list of roles scoped to this tenant: [{“id”, “name”}]. A member with no roles in the tenant receives an empty list.
Error Codes
- 403 Forbidden: Caller lacks user-management permission in the tenant
- 404 Not Found: User does not exist or is not a member of this tenant
GET
Get User Roles