# user.set_password

Set the password of the specified username to the new_password specified in payload.

ValidationErrors will be raised in the following situations: * username does not exist * account is not local to the NAS (Active Directory, LDAP, etc) * account has password authentication disabled * account is locked

NOTE: when authenticated session has less than FULL_ADMIN role, password changes will be rejected if the payload does not match the currently-authenticated user.

NOTE: users authenticated with a one-time password will be able to change the password without submitting a second time.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: set_password_data

#### set_password_data

Type: object

UserSetPasswordArgs parameters.

No Additional Properties

##

#### Username

Type: string

Username of the account to change password for.

##

#### Old Password

Default: null

Current password for verification. `null` if changing password as administrator.

## Any of

Type: string
Type: null

##

#### New Password

Type: string

New password to set for the user account.

Must be at least `1` characters long

##

#### Result

Type: null

Returns `null` on successful password change.

Required roles: