Change User Password
Request Description
Request Headers
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| Authorization | Authorization | Yes | String | Format: Bearer {access_token} |
| Content-Type | Content Type | Yes | String | Fixed value: application/json; charset=utf-8 |
Request Example
json
{
"password":"12345678",
"must_modify":false
}Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| user_id | User ID | Yes | String | Target user ID |
| password | New Password | Yes | String | |
| must_modify | Whether the user must change password on next login | No | Boolean | Default is true |
Response Example
Success Example
HTTP/1.1 200 OK
json
{
"user_id": "20201028102749564-9082-DC8CD2722"
}Error Example
json
{
"error_msg": "User not found",
"error_code": "IDAAS.TENANT.USER.0001"
}Response Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| user_id | User ID | Yes | String |
Error Codes
| Status Code | Error Code | Chinese Error Message | English Error Message | Resolution |
|---|---|---|---|---|
| 400 | IDAAS.TENANT.USER.0001 | 用户未找到 | User not found | Please check whether the user exists |
| 400 | IDAAS.TENANT.PWD.0001 | 不允许使用历史密码 | The password is used before, cannot be used again | Please re-enter the password |
| 400 | IDAAS.TENANT.PWD.0002 | 密码不允许使用用户名的倒写 | Password cannot username in reverse order | Please re-enter the password |
| 400 | IDAAS.TENANT.PWD.0003 | 密码中不允许包含:用户名、手机号、邮箱前缀、姓名拼音 | Password cannot contain :username, mobile number, email prefix, name in PinYing | Please re-enter the password |
| 400 | IDAAS.TENANT.PWD.0004 | 密码复杂度低, | Your password complexity is low, | Please re-enter the password |
| 400 | IDAAS.TENANT.PWD.0005 | 该密码为弱密码 | The password is weak | Please re-enter the password |
| 400 | IDAAS.TENANT.PWD.0006 | 密码中最大字符重复数不能超过 | Number of character repeat in password should not exceed | Please re-enter the password |
| 400 | IDAAS.TENANT.PWD.0007 | 密码长度为{0}~{1}个字符 | The password must contain {0} to {1} characters | Please re-enter the password |