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
Copy file name to clipboardExpand all lines: content/operate/rs/7.8/security/access-control/manage-passwords/rotate-passwords.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,37 +42,46 @@ The new password cannot already exist as a password for the user and must meet t
42
42
43
43
## Rotate password
44
44
45
-
To rotate your password:
45
+
To rotate passwords:
46
46
47
-
1. Add an additional password to your password list with [`POST /v1/users/password`]({{< relref "/operate/rs/7.8/references/rest-api/requests/users/password#add-password" >}}). You must provide the relevant username and current password for [basic authentication]({{<relref "/operate/rs/7.8/references/rest-api#authentication">}}) credentials when you send the request.
47
+
1. Add an additional password to a user's password list with [`POST /v1/users/password`]({{< relref "/operate/rs/7.8/references/rest-api/requests/users/password#add-password" >}}).
48
48
49
49
```sh
50
50
POST https://<host>:<port>/v1/users/password
51
-
{ "new_password": "<a_new_password>" }
51
+
{
52
+
"username": "<target_username>",
53
+
"new_password": "<a_new_password>"
54
+
}
52
55
```
53
56
54
-
After you send this request, you can authenticate with both the old and the new password.
57
+
After you send this request, the user can authenticate with both the old and the new password.
55
58
56
59
1. Update the password in all database connections that connect with the user account.
57
-
1. Delete the original password with [`DELETE /v1/users/password`]({{< relref "/operate/rs/7.8/references/rest-api/requests/users/password#update-password">}}):
60
+
1. Delete the original password with [`DELETE /v1/users/password`]({{< relref "/operate/rs/7.8/references/rest-api/requests/users/password#delete-password">}}):
58
61
59
62
```sh
60
63
DELETE https://<host>:<port>/v1/users/password
61
-
{ "old_password": "<an_existing_password>" }
64
+
{
65
+
"username": "<target_username>",
66
+
"old_password": "<existing_password_to_delete>"
67
+
}
62
68
```
63
69
64
70
If there is only one valid password for a user account, you cannot delete that password.
65
71
66
72
## Replace all passwords
67
73
68
-
You can also replace all existing passwords foryour user account with a single password that does not match any existing passwords.
74
+
You can also replace all existing passwords fora user account with a single password that does not match any existing passwords.
69
75
This can be helpful if you suspect that your passwords are compromised and you want to quickly resecure the account.
70
76
71
-
To replace your passwords, use [`PUT /v1/users/password`]({{< relref "/operate/rs/7.8/references/rest-api/requests/users/password#delete-password">}}). You must provide the relevant username and current password for [basic authentication]({{<relref "/operate/rs/7.8/references/rest-api#authentication">}}) credentials when you send the request.
77
+
To replace a user's passwords, use [`PUT /v1/users/password`]({{< relref "/operate/rs/7.8/references/rest-api/requests/users/password#update-password" >}}).
72
78
73
79
```sh
74
80
PUT https://<host>:<port>/v1/users/password
75
-
{ "new_password": "<a_new_password>" }
81
+
{
82
+
"username": "<target_username>",
83
+
"new_password": "<a_new_password>"
84
+
}
76
85
```
77
86
78
-
After this request, all of your existing passwords are deleted and only the new password is valid.
87
+
After this request, all of the user's existing passwords are deleted and only the new password is valid.
0 commit comments