Skip to content

Users

users_users_update

Update an end user's profile, status flags and metadata bags.

Tool

users_users_update

Update an end user's profile, status flags and metadata bags.

Update an end user's profile, status flags and metadata bags. Only the fields you pass change. A metadata field REPLACES that whole bag — send the full object you want stored. Write matrix in this phase: the management plane writes all three bags (public: end-user readable and may flow into the JWT; private: management plane only; unsafe: end-user writable later and never authoritative for authorization).

Behavior

HTTP
PATCH /users/users/:userId

Arguments

NameTypeRequiredDescription
namestringThe user's display name. Pass null to clear.
userIdstringThe user to update.
imageUrlstringURL of the user's avatar image. Pass null to clear.
waitlistedbooleanWhether the user is still a waitlist signup.
lockedUntilstringISO-8601 timestamp of a temporary, self-healing lockout — the failed-attempt ceiling sets it and it expires on its own. Pass null to unlock the account immediately (audited as `user.unlocked`).
requiresResetbooleanWhether the user must reset their password before signing in.
publicMetadataobjectREPLACES the whole public metadata bag. Management-plane write, end-user read.
unsafeMetadataobjectREPLACES the whole unsafe metadata bag. End-user writable in a later phase; never authoritative.
privateMetadataobjectREPLACES the whole private metadata bag. Management plane only.

Response

FieldTypeAlwaysDescription
idstring
namestring
bannedAtstring
erasedAtstring
imageUrlstring
testUserboolean
createdAtstring
deletedAtstring
productIdstring
updatedAtstring
waitlistedboolean
identifiersarray
lockedUntilstring
lastSignInAtstring
requiresResetboolean
publicMetadataobject
unsafeMetadataobject
privateMetadataobject
emailChangeLockedUntilstring

Try it

Update an end user's profile, status flags and metadata bags.

When to use

Update an end user's profile, status flags and metadata bags. Only the fields you pass change. A metadata field REPLACES that whole bag — send the full object you want stored. Write matrix in this phase: the management plane writes all three bags (public: end-user readable and may flow into the JWT; private: management plane only; unsafe: end-user writable later and never authoritative for authorization).

Example

Ask your agent something like this:

Update an end user's profile, status flags and metadata bags.

The agent will invoke users_users_update with these arguments:

{
  "userId": "<userId>"
}

Esc

Start typing to search the docs.

navigateselect