cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Account → Enable forced password update

AI-generated

Summary

Force specified users to change their account passwords at the next login on the WHM server.

Inputs

  • Users Json (required) — A JSON string listing the users to be forced to change their passwords upon next login.
  • Stop On Failure — Optionally halt the operation on error (1) or continue processing other users despite errors (0). Defaults to 0.

Output shape

a JSON object containing the WHM API response indicating success or failure for each user.

The output includes detailed response data from WHM's API. Errors may cause partial failures depending on the 'Stop On Failure' setting.

Examples

Example 1: Force password update for multiple users

The Users Json input contains a JSON array of usernames; Stop On Failure set to 1 to halt on first error.

Links

Discussion