AWS code-library documentation change
Summary
Added PowerShell V5 example demonstrating password reset requirement flag
Security assessment
Documents security best practice by enforcing password reset on first login. While security-related, this is preventative guidance rather than addressing an existing vulnerability.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_CreateLoginProfile_section.md b/code-library/latest/ug/iam_example_iam_CreateLoginProfile_section.md index 1ed3b99d1..ad0fb70d4 100644 --- a//code-library/latest/ug/iam_example_iam_CreateLoginProfile_section.md +++ b//code-library/latest/ug/iam_example_iam_CreateLoginProfile_section.md @@ -91,0 +92,21 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example creates a (temporary) password for the IAM user named Bob, and sets the flag that requires the user to change the password the next time`Bob` signs in.** + + + New-IAMLoginProfile -UserName Bob -Password P@ssw0rd -PasswordResetRequired $true + + +**Output:** + + + CreateDate PasswordResetRequired UserName + ---------- --------------------- -------- + 4/14/2015 12:26:30 PM True Bob + + * For API details, see [CreateLoginProfile](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +