getUserPasswordStatus
Syntax
getUserPasswordStatus([user])
Details
Retrieves the password status of the specified user. If user is unspecified, the password status of all users in the system except for admin is returned.
Parameters
user (optional) is a string indicating a user name.
Returns
A table with the following columns:
- user: The username.
- setTime: The time when the current password was set.
- expireTime: The password expiration time.
- authMode: The authentication method, which can be either "SHA256" or "SCRAM".
Examples
getUserPasswordStatus(`user1)
| user | setTime | expireTime | authMode |
|---|---|---|---|
| user1 | 2025.03.27 11:51:09.154259866 | 2025.04.26 11:51:09.154259866 | SHA256 |
