User Toolswordpress_update_user

wordpress_update_user

Update a WordPress user's email, display name, password, or role.

wordpress_update_user

Update user information.

Parameters

6 parameters, 1 required.

NameTypeRequiredWhat it is
idnumberyesUser ID
emailstringnoEmail address
display_namestringnoDisplay name
passwordstringnoPassword
rolestringnoUser role
approval_tokenstringnoSingle-use approval token from a prior respira_approval_required response. Pass the token from data.approval_request.approval_token to complete the update.

Example call

The smallest valid call, with the required parameters only:

{
  "name": "wordpress_update_user",
  "arguments": {
    "id": 123
  }
}

Response

{
  "success": true,
  "updated": true,
  "id": 55
}

What it changes

It removes or overwrites something on the site, so treat it as the careful kind of call. On a page or post the edit lands on a copy first. The live page changes only when a person approves the copy in wp-admin. Calling it twice with the same arguments leaves the site in the same state as calling it once. On a connection set to read-only it is refused with respira_scope_denied.

Availability

Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.

Example Prompts

  • "Change user 55 role to editor"
  • "Update user 55 display name to 'John Smith'"