Reset Password
Sets a new password for a local user without requiring their current password. Use this
when a local user has forgotten their password; use POST /iam/change-password for the
self-service case where the old password is known.
Notes:
- Requires the
enterprise_adminrole. - Remote (LDAP) users do not have a local password and cannot be targeted by this API - their password is managed by the identity provider.
Show optional properties
{
"user_name": "string",
"new_password": "string"
}
{
"user_name": "audit",
"new_password": "********"
}
The local user whose password is being reset. Remote (LDAP) users cannot be targeted, since their password is not managed by Installer.
The password to set for user_name. Must satisfy the configured password policy, or the request is rejected with 400.
The password was reset successfully.
The user does not exist, is not a local user, or the new password does not meet the password policy.
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
4XX and 5XX type errors with appropriate message
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"user_name":"string","new_password":"string"}' https://{api_host}/https://{api_host}:{port}/lh-appliance/iam/reset-password