GetUser
In this article:
GetUser#
Description#
Returns information about the specified IAM user.
Request Parameters#
UserName — The name of the user.
Type: String
Required: Yes
Response Elements#
User — Full user details.
Type: User object
Examples#
Request
https://iam.k2.cloud/?Action=GetUser
&UserName=user-1
Response
<GetUserResponse>
<GetUserResult>
<User>
<UserArn>arn:c2:iam::c2dev:user/user-1</UserArn>
<UserId>a73bacad-aeca-4916-b37a-7d5f871b068e</UserId>
<UserName>user-1</UserName>
<Login>user-1@c2dev</Login>
<DisplayName>New Name</DisplayName>
<Enabled>true</Enabled>
<UpdateDate>1724426935</UpdateDate>
<LastLoginDate>1724426979</LastLoginDate>
<Email>new@gmail.com</Email>
<Phone />
<OtpRequired>true</OtpRequired>
</User>
</GetUserResult>
<requestId>c5036a42-dc0d-4a82-9c32-9bd4f222b095</requestId>
<ResponseMetadata>
<RequestId>c5036a42-dc0d-4a82-9c32-9bd4f222b095</RequestId>
</ResponseMetadata>
</GetUserResponse>
c2-iam GetUser UserName user-1