Email one-time password to users created with API or CLI
When you create users with the CreateUser API operation or the create-user
CLI command, the users do not have passwords. You can update the settings in IAM Identity Center to send these users a verification email after their first attempt to sign in, if you’ve specified an
email for the user when they were created. After receiving the verification email, the
user must set a password to sign in.
If you don’t enable this setting, you must generate a one-time password and
share it with users that you create using the CreateUser API
or create-user CLI command.
To send an email address verification email to users created with the CreateUser API or create-user CLI command
-
Open the IAM Identity Center console
. -
Choose Settings.
-
On the Settings page, choose the Authentication tab.
-
In the Standard authentication section, choose Configure.
-
In the Configure standard authentication dialog box, select the Send email OTP check box. Then, choose Save. The status updates from Disabled to Enabled.
If you use trusted identity propagation with an IAM identity provider and you turn on this setting, users can sign in to the AWS access portal with an IAM Identity Center credential. If you want your users to sign in only through your IAM identity provider, don't turn on this setting. For more information, see Trusted identity propagation with an IAM identity provider.