Customer Identity (CIAM)

Change User Password

# Request Description

PUT https://{your_domain}/api/v2/tenant/users/{user_id}/change-password

# Request Headers

Parameter 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

{
  "password":"12345678",
  "must_modify":false
}
1
2
3
4

# Request Parameters

Parameter Chinese Name Required Type Description
user_id User ID Yes String Target User ID
password New Password Yes String
must_modify Whether to force password change on next login No Boolean Defaults to true

# Return Example

Correct Example:
HTTP/1.1 200 OK
Content-Type: application/json
{
  "user_id": "20201028102749564-9082-DC8CD2722"
}


Error Example:
{
  "error_msg": "User not found",
  "error_code": "IDAAS.TENANT.USER.0001"
}
1
2
3
4
5
6
7
8
9
10
11
12
13

# Return Parameters

Parameter Name Chinese Name Required Type Description
user_id User ID Yes String

# Error Codes

Status Code Error Code Error Message Handling Measure
400 IDAAS.TENANT.USER.0001 User not found Please check if the corresponding user exists
User not found
400 IDAAS.TENANT.PWD.0001 The password is used before, cannot be used again Please re-enter the password
Historical passwords are not allowed
400 IDAAS.TENANT.PWD.0002 Password cannot username in reverse order Please re-enter the password
Password cannot be the reverse of the username
400 IDAAS.TENANT.PWD.0003 Password cannot contain :username, mobile number, email prefix, name in PinYing Please re-enter the password
Password cannot contain: username, mobile number, email prefix, name in Pinyin
400 IDAAS.TENANT.PWD.0004 Your password complexity is low, {0} Please re-enter the password
Password complexity is low, {0}
400 IDAAS.TENANT.PWD.0005 The password is weak Please re-enter the password
This password is a weak password
400 IDAAS.TENANT.PWD.0006 Number of character repeat in password should not exceed {0} Please re-enter the password
Maximum character repetition in password cannot exceed {0}
400 IDAAS.TENANT.PWD.0007 The password must contain {0} to {1} characters Please re-enter the password
Password length must be {0}~{1} characters

Please paste the Markdown content you need translated.