UpdateLoginProfile

Last Updated: Aug 25, 2016

Interface description

 Updates a user’s login configurations.

Request parameters

Action

  • Type: String
  • Required: Yes
  • Description: Operation interface, required. The parameter value is “UpdateLoginProfile”.

UserName

  • Type: String
  • Required: Yes
  • Description: User name.

Password

  • Type: String
  • Required: No
  • Description: Password. The password must have the required password strength.

PasswordResetRequired

  • Type: Boolean
  • Required: No
  • Description: Determines whether you need to change the password upon login.

MFABindRequired

  • Type: Boolean
  • Required: No
  • Description: Determines whether you need to bind to an MFA device upon next login.

Return parameters

LoginProfile

Required permissions

Action

ram:UpdateLoginProfile

Resource

acs:ram:*:${AccountId}:user/${UserName}

Error messages

InvalidParameter.UserName.InvalidChars
  • HTTP Status:400
  • Error Message:The parameter - “UserName” contains invalid chars.
InvalidParameter.UserName.Length
  • HTTP Status:400
  • Error Message:The parameter - “UserName” beyond the length limit.
EntityNotExist.User
  • HTTP Status:404
  • Error Message:The user does not exist.
EntityNotExist.User.LoginProfile
  • HTTP Status:404
  • Error Message:The user login profile does not exist.

Operation examples

Request example

  1. https://ram.aliyuncs.com/?Action=UpdateLoginProfile
  2. &UserName=zhangqiang
  3. &Password=mypassword
  4. &PasswordResetRequired=true
  5. &<Public request parameters>

Return example

XML format

  1. <UpdateLoginProfile>
  2. <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  3. </UpdateLoginProfile>

JSON format

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
  3. }
Thank you! We've received your feedback.