API ReferenceUser
user.createWithInvite
Type: Mutation · Auth: Admin only
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
string.email | Yes | — | ||
| name | string | Yes | — | Name |
| globalRole | enum(admin, field_supervisor, sales_rep, technician, accounting, customer_service, tech_support, viewer) | Yes | — | Global role |
| phone | string | No | — | Phone |
| notes | string | No | — | Notes |
| avatarS3Key | string | No | — | Avatar s3key |
| workspaceIds | string[] | Yes | — | Workspace ids |
| defaultWorkspaceId | string.uuid | Yes | — | ID of the associated default workspace |
Example
{
"email": "user@example.com",
"name": "Example Name",
"globalRole": "admin",
"phone": "(555) 555-0100",
"notes": "Additional notes",
"avatarS3Key": "example",
"workspaceIds": [],
"defaultWorkspaceId": "550e8400-e29b-41d4-a716-446655440000"
}