AWS code-library documentation change
Summary
Added PowerShell V5 examples for renaming IAM users and modifying user paths
Security assessment
The change adds usage examples for user management operations but does not address security vulnerabilities or introduce security features. Renaming users/paths is standard administrative functionality.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_UpdateUser_section.md b/code-library/latest/ug/iam_example_iam_UpdateUser_section.md index ed037c4bc..5aa682478 100644 --- a//code-library/latest/ug/iam_example_iam_UpdateUser_section.md +++ b//code-library/latest/ug/iam_example_iam_UpdateUser_section.md @@ -295,0 +296,20 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example renames the IAM user`Bob` to `Robert`.** + + + Update-IAMUser -UserName Bob -NewUserName Robert + + +**Example 2: This example changes the path of the IAM User`Bob` to `/Org1/Org2/`, which effectively changes the ARN for the user to `arn:aws:iam::123456789012:user/Org1/Org2/bob`.** + + + Update-IAMUser -UserName Bob -NewPath /Org1/Org2/ + + + * For API details, see [UpdateUser](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +