Views the logon configurations of a RAM user.

Debug

Use API Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes GetLoginProfile

The name of this action.

Value: GetLoginProfile

UserName String Yes Alice The username.

Response parameters

Parameter Type Example value Description
LoginProfile N/A N/A The logon configurations.
CreateDate String 2015-01-23T12:33:18Z The creation time.
MFABindRequired Boolean true Indicates that you must attach an MFA device.
PasswordResetRequired Boolean true Indicates that you must change your password upon next logon.
UserName String Alice The username.
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368 The request ID.

Example

Request example

https://ram.aliyuncs.com/?Action=GetLoginProfile
&UserName=Alice
&<Common parameters>

Response example

XML format

<GetLoginProfile>
  <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  <LoginProfile>
    <UserName>Alice</UserName>
    <PasswordResetRequired>true</PasswordResetRequired>
    <MFABindRequired>true</MFABindRequired>
    <CreateDate>2015-01-23T12:33:18Z</CreateDate>
  </LoginProfile>
</GetLoginProfile>

JSON format

{
    "RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368",
    "LoginProfile":{
        "PasswordResetRequired":true,
        "MFABindRequired":true,
        "UserName":"Alice",
        "CreateDate":"2015-01-23T12:33:18Z"
    }
}

Errors

For a list of error codes, visit the API Error Center.