AWS Identity and Access Management
CLI Reference (API Version 2010-05-08)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

iam-usergetloginprofile

Description

Returns verification that a password exists for a specified user, or returns an error if the specified user does not have a password.

Syntax

iam-usergetloginprofile -u USERNAME

Options

Name Description Required

-u USERNAME

Name of the user whose password you want to verify.

Type: String

Default: None

Yes

Output

The output either returns a message verifying that a password exists for the specified user, or if the user has no password it returns an error message.

Example

The following example returns output when a password exists for a user called John.

PROMPT> iam-usergetloginprofile -u John
Login Profile Exists for User John

The following example returns output when a password doesn't exist for a user called Jackie.

PROMPT> iam-usergetloginprofile -u Jackie
404 NoSuchEntity Cannot find Login Profile for User Jackie