Reset User Password
PATCH https://api.repoflow.io/1/users/<user-identifier>/password
Set a new local password for an existing user. This operation takes effect immediately and does not send a password-reset email or require the user's current password.
Allowed Role: System Admin • Authentication Required
The identifier can be a user ID (UUID), email address, or username. UUID-shaped values are treated as user IDs; other values containing @ are treated as email addresses; remaining values are treated as usernames. Matching is case-insensitive and ignores surrounding whitespace. URL-encode the identifier when including it in the request path.
The password must satisfy the server's configured password policy. Accounts without a local password, such as SSO- or LDAP-managed accounts, cannot be reset through this endpoint.
Successful changes clear any pending password-reset token and record the administrator and target user in Audit Logs when audit logging is enabled. Passwords are excluded from audit events and responses, including validation errors.
Path Parameters
User ID (UUID), email address, or username.
Body
New password satisfying the configured password policy. Surrounding whitespace is trimmed.
Returns 200 with the resolved user ID, 400 for an invalid password or an account without a local password, 401 for missing authentication or a caller who is not a System Admin, and 404 if the user does not exist.