Set a user password
PUT/api/web/v1/users/:userid/passwords
Set a user password for the specified user. Caller requires the USERPASSWORDS:EDIT permission.
Request
Path Parameters
The UUID of the user whose password is to be created or modified.
- application/json
Body
required
- 1.the user must be an IDaaS local user.
- 2.currentPassword must be null.
- 3.generatePassword must be false.
- 4.emailPassword must be false.
- 5.returnPassword must be false.
If set to true, this flag indicates existing password history is cleared before the new password is created.
A value for the current password when changing the AD-User password.
A flag indicating whether to email a new password to the user. It defaults to true.
The date at which the password will expire.
If set to true, this value indicates the user will be forced to change their password upon next password authentication.
A flag indicating whether a new random password is generated. It defaults to false.
A value for the new password when setting the user password. This value is ignored if generatePassword is set to true.
Possible values: [CLEARTEXT
, BCRYPT
]
Default value: CLEARTEXT
Define the password format of new password, it's BCRYPT when importing BCrypted password, it defaults to CLEARTEXT if not provided.When passwordFormat is BCRYPT, the following restrictions must be enforced:
A flag indicating if a password generated by IDaaS should be returned to the caller. This flag is ignored if the password is passed from the client. It defaults to false.
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Successful
- application/json
- Schema
- Example (from schema)
Schema
The date at which the next password expiry notification will be sent.
The date at which the password will expire.
Indicates if the user will be forced to change their password the next time the user authenticates with it.
The last time the password was changed.
The value of the new password generated by IDaaS if requested by the client.
A flag that indicates if the user has a password.
{
"expiryNotificationDate": "2019-02-19T13:15:27Z",
"expiryTime": "2019-02-19T13:15:27Z",
"forceUpdate": true,
"lastChangedTime": "2019-02-19T13:15:27Z",
"newPassword": "string",
"present": true
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Access denied
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Conflict
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}