Get Login Profile
iam_get_login_profile | R Documentation |
Retrieves the user name for the specified IAM user¶
Description¶
Retrieves the user name for the specified IAM user. A login profile is
created when you create a password for the user to access the Amazon Web
Services Management Console. If the user does not exist or does not have
a password, the operation returns a 404 (NoSuchEntity
) error.
If you create an IAM user with access to the console, the CreateDate
reflects the date you created the initial password for the user.
If you create an IAM user with programmatic access, and then later add a
password for the user to access the Amazon Web Services Management
Console, the CreateDate
reflects the initial password creation date. A
user with programmatic access does not have a login profile unless you
create a password for the user to access the Amazon Web Services
Management Console.
Usage¶
Arguments¶
UserName
[required] The name of the user whose login profile you want to retrieve.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Value¶
A list with the following syntax:
list(
LoginProfile = list(
UserName = "string",
CreateDate = as.POSIXct(
"2015-01-01"
),
PasswordResetRequired = TRUE|FALSE
)
)