iam_create_login_profile: Creates a password for the specified user, giving the user...

Description Usage Arguments Request syntax Examples

View source: R/iam_operations.R

Description

Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console. For more information about managing passwords, see Managing Passwords in the IAM User Guide.

Usage

1
iam_create_login_profile(UserName, Password, PasswordResetRequired)

Arguments

UserName

[required] The name of the IAM user to create a password for. The user must already exist.

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: \_+=,[email protected]

Password

[required] The new password for the user.

The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space (U+0020) through the end of the ASCII character range (U+00FF). You can also include the tab (U+0009), line feed (U+000A), and carriage return (U+000D) characters. Any of these characters are valid in a password. However, many tools, such as the AWS Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

PasswordResetRequired

Specifies whether the user is required to set a new password on next sign-in.

Request syntax

1
2
3
4
5
svc$create_login_profile(
  UserName = "string",
  Password = "string",
  PasswordResetRequired = TRUE|FALSE
)

Examples

1
2
3
4
5
6
7
# The following command changes IAM user Bob's password and sets the flag
# that required Bob to change the password the next time he signs in.
svc$create_login_profile(
  Password = "h]6EszR}vJ*m",
  PasswordResetRequired = TRUE,
  UserName = "Bob"
)

paws.security.identity documentation built on Oct. 30, 2019, 11:26 a.m.