GetLoginProfile

Last Updated: Aug 26, 2016

Interface description

 Views login configurations of an RAM user.

Request parameters

Action

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

UserName

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

Return parameters

LoginProfile

Required permissions

Action

ram:GetLoginProfile

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=GetLoginProfile
  2. &UserName=zhangqiang
  3. &<Public request parameters>

Return example

XML format

  1. <GetLoginProfile>
  2. <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  3. <LoginProfile>
  4. <UserName>zhangqiang</UserName>
  5. <PasswordResetRequired>true</PasswordResetRequired>
  6. <MFABindRequired>true</MFABindRequired>
  7. <CreateDate>2015-01-23T12:33:18Z</CreateDate>
  8. </LoginProfile>
  9. </GetLoginProfile>

JSON format

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  3. "LoginProfile": {
  4. "UserName": "zhangqiang",
  5. "PasswordResetRequired": true,
  6. "MFABindRequired": true,
  7. "CreateDate": "2015-01-23T12:33:18Z"
  8. }
  9. }
Thank you! We've received your feedback.