Skip to Content
bpms.ai
ReferenceAccess

Reset the password of a user

POST
/api/v1/access/users/{userId}/password

Sets a new password for another BPMS 3.x user of the tenant of the request, as the 3.x user form does, stored as Argon2id, and revokes at once every session of the user, REST sessions and MCP agent tokens. The user must change it at the next login unless mustChangePassword is false. Requires 6.2.2.2 (edit users). The own password is changed with POST /api/v1/auth/password.

Authorization

bearer
headerAuthorizationBearer <token>

The token of a session that createSession opened

Path Parameters

userId*integer

Id of the user

Formatint64

Request Body

The new password

application/json
  1. body
mustChangePassword?boolean

Whether the user must change the password at the next login; true when absent

Defaulttrue
password?string

Must follow the password policy; stored as Argon2id

Response Body

The password is reset and the user's sessions are revoked

Example Request
curl -X POST 'https://bpms.bpms.work/api/v1/access/users/0/password' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
Empty