You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Change your password without bcrypt hash {#usersuserpasswordwithouthash-put}
341
+
342
+
The `/users/:user/change_password` API endpoint provides HTTP PUT access to change your Sensu user password.
343
+
344
+
{{% notice note %}}
345
+
**NOTE**: The `/users/:user/change_password` API endpoint allows a user to update their own password, without any permissions.
346
+
This differs from the `/users/:user/reset_password` API endpoint, which requires explicit [`users` permissions](../../../operations/control-access/rbac/#users) to change the user password.
347
+
{{% /notice %}}
348
+
349
+
### Example {#usersuserpasswordwithouthash-put-example}
350
+
351
+
In the following example, an HTTP PUT request is submitted to the `/users/:user/password` API endpoint to update the password for the user `alice`.
352
+
353
+
The `password` is your current password in cleartext.
354
+
The `password_new` is your new password in cleartext.
The request will return a successful `HTTP/1.1 201 Created` response.
369
+
370
+
### API Specification {#usersuserpassword-put-specification}
371
+
372
+
/users/:user/change_password (PUT) |
373
+
----------------|------
374
+
description | Changes the password for the specified Sensu user without usage of [bcrypt][3] hash.
375
+
example URL | http://hostname:8080/api/core/v2/users/alice/change_password
376
+
payload parameters | Required: <ul><li>`username`: string; the username for the Sensu user</li><li>`password`: string; the user's current password in cleartext</li><li>`password_new`: string; the user's new password in cleartext</li></ul>
0 commit comments