Actions12
User → Update
AI-generatedSummary
Update an existing WordPress user by specifying the user's unique ID and providing any subset of user fields to modify.
Inputs
- User ID (required) — Unique identifier of the user to update.
- Update Fields — Collection of fields to update for the user, such as description, email, first name, last name, display name, nickname, password, roles, slug, URL, and username.
Output shape
a single record representing the updated user object
Returns the JSON response from the WordPress API representing the updated user with applied changes. Errors during update produce a node error unless 'Continue On Fail' is enabled, in which case error details appear in the output.
Examples
Example 1: Update a user email and roles
Provide the user ID and set new email and roles in the 'Update Fields' collection to modify the user accordingly.