rbac

Create User Assignment

Create a user role assignment.

Assigns a role directly to a user. If workspace_id is None, creates an org-wide assignment that applies to all workspaces. Each user can have at most one assignment per workspace (or one org-wide assignment).

Requires: org:rbac:create scope

post/rbac/user-assignments

Request

  • Base URL
    https://platform.tracecat.com/api
  • Auth
    • API key in cookie fastapiusersauth
    • or HTTP bearer

Request body

user_idstring uuid required

User ID to assign role to

role_idstring uuid required

Role ID to assign to the user

workspace_idstring uuid nullable

Workspace ID for workspace-level assignment. If None, creates org-wide assignment.

Response

Successful Response

idstring uuid required
organization_idstring uuid required
user_idstring uuid required
workspace_idstring uuid nullable
role_idstring uuid required
assigned_atstring date-time required
assigned_bystring uuid nullable
user_emailstring required
role_namestring required
workspace_namestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.