Skip to content

修改用户密码

请求说明

请求头

参数名中文名称必须类型描述
Authorization授权String格式:Bearer {access_token}
Content-Type内容类型String固定值:application/json; charset=utf-8

请求示例

json
{
  "password":"12345678",
  "must_modify":false
}

请求参数

参数名中文名称必须类型描述
user_id用户IDString目标用户ID
password新密码String
must_modify下次登录是否要强制修改密码Boolean默认为true

返回示例

成功示例

HTTP/1.1 200 OK

json
{
  "user_id": "20201028102749564-9082-DC8CD2722"
}

错误示例

json
{
  "error_msg": "User not found",
  "error_code": "IDAAS.TENANT.USER.0001"
}

返回参数

参数名中文名称必须类型描述
user_id用户IDString

错误码

状态码错误码中文错误信息英文错误信息处理措施
400IDAAS.TENANT.USER.0001用户未找到User not found请检查对应用户是否存在
400IDAAS.TENANT.PWD.0001不允许使用历史密码The password is used before, cannot be used again请重新输入密码
400IDAAS.TENANT.PWD.0002密码不允许使用用户名的倒写Password cannot username in reverse order请重新输入密码
400IDAAS.TENANT.PWD.0003密码中不允许包含:用户名、手机号、邮箱前缀、姓名拼音Password cannot contain :username, mobile number, email prefix, name in PinYing请重新输入密码
400IDAAS.TENANT.PWD.0004密码复杂度低,Your password complexity is low,请重新输入密码
400IDAAS.TENANT.PWD.0005该密码为弱密码The password is weak请重新输入密码
400IDAAS.TENANT.PWD.0006密码中最大字符重复数不能超过Number of character repeat in password should not exceed请重新输入密码
400IDAAS.TENANT.PWD.0007密码长度为{0}~{1}个字符The password must contain {0} to {1} characters请重新输入密码

竹云IDaaS开放平台