Update the user account password
POST /security/authentication/password
Updates the password for a user account.
Required parameters
-
name
- User account name. -
password
- New password for the user account.
Optional parameters
-
owner.name
orowner.uuid
- Name or UUID of the SVM for an SVM-scoped user account.
Related ONTAP commands
-
security login password
Request Body
Name | Type | Description |
---|---|---|
name |
string |
The user account name whose password is being modified. |
owner |
Owner name and UUID that uniquely identifies the user account. This field is optional and valid only when a cluster administrator is executing the API to uniquely identify the account whose password is being modified. The "owner" field is not required to be specified for SVM user accounts trying to modify their password. |
|
password |
string |
The password string |
Example request
{
"name": "string",
"owner": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
},
"password": "string"
}
Response
Status: 201, Created
Error
Status: Default
ONTAP Error Response Codes
Error Code | Description |
---|---|
7077919 |
Minimum length for new password does not meet the policy. |
7077920 |
New password must have both letters and numbers. |
7077921 |
Minimum number of special characters required do not meet the policy. |
7077940 |
Password exceeds maximum supported length. |
7077941 |
The defined password composition exceeds the maximum password length of 128 characters. |
7077918 |
Password cannot contain the username. |
7077924 |
New password must be different than last N passwords. |
7077925 |
New password must be different to the old password. |
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
href
Name | Type | Description |
---|---|---|
href |
string |
_links
Name | Type | Description |
---|---|---|
self |
owner
Owner name and UUID that uniquely identifies the user account. This field is optional and valid only when a cluster administrator is executing the API to uniquely identify the account whose password is being modified. The "owner" field is not required to be specified for SVM user accounts trying to modify their password.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the SVM. |
uuid |
string |
The unique identifier of the SVM. |
account_password
The password object
Name | Type | Description |
---|---|---|
name |
string |
The user account name whose password is being modified. |
owner |
Owner name and UUID that uniquely identifies the user account. This field is optional and valid only when a cluster administrator is executing the API to uniquely identify the account whose password is being modified. The "owner" field is not required to be specified for SVM user accounts trying to modify their password. |
|
password |
string |
The password string |
error_arguments
Name | Type | Description |
---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
error
Name | Type | Description |
---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |