Skip to main content
PATCH
PATCH /v1/users/{id}

Update a User

Update a user’s properties using JSON Merge Patch. You can update by ID or by fully qualified name.

Update by ID

string
required
UUID of the user to update.

Update by Name

Use PATCH /v1/users/name/{fqn} to update by fully qualified name.
string
required
Fully qualified name of the user, for example aaron_johnson0.

Body Parameters

Send a JSON object with the fields to update. Only provided fields are changed.
string
Updated display name.
string
Updated description in Markdown format.
string
Updated email address.
boolean
Updated admin status.
array
Updated list of team references.
array
Updated list of role references.
array
Updated domains, as fully qualified names.
object
Updated profile information.
PATCH /v1/users/{id}

Returns

Returns the updated user object with the new version number.

Response

string
Unique identifier for the user (UUID format).
string
Username.
string
Fully qualified name (same as name for users).
string
Updated description.
number
Incremented version number.

Changing Domains

Only administrators can change a user’s domains, through PATCH on /domains, a root-level patch, or PUT. Other callers, including bots, get 403.
  • Re-sending: Sending the domains the user already holds, or none, still works for any caller with edit access.
  • Inherited domains: Domains a user inherits from a team do not count as held. A non-admin cannot send them back.
  • Other self-edits: Users can still update their own other fields, including defaultDomain.

Email Address

Updates are never checked against the allowed email domains. You cannot change a user’s email address with PATCH or PUT.

Error Handling