Skip to Content
Access Control(IAM)UpdateLoginProfile

Update user login profile - UpdateLoginProfile

Overview

Update user login profile

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateLoginProfile.Yes
PublicKeystringThe user’s public key can be obtained from Console Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
UserNamestringUser nameYes
StatusstringUser statusNo
UserEmailstringUser’s email addressNo
PasswordstringSet the password for the sub-accountNo
MaxPasswordAgeintSet the validity period of the sub-account passwordNo
MFABindRequiredbooleanSub-account logins must be bound to MFA verificationNo
PasswordResetRequiredbooleanSub-account must reset its password the next time it logs inNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No

Example

Request Example

https://api.surfercloud.com/?Action=UpdateLoginProfile &UserName=Alice &MFABindRequired=true &MaxPasswordAge=90 &Status=Active &UserEmail=alice@ucloud.cn &MFABindRequired=false &MaxPasswordAge=4 &Password=qgAcTpbT &PasswordResetRequired=false

Response Example

{ "Message": "Success", "RetCode": 0 }