AWS IAM documentation change
Summary
Added PowerShell V5 example for listing user's group memberships
Security assessment
Improves documentation about access control auditing (security best practice) but no vulnerability addressed
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_ListGroupsForUser_section.md b/IAM/latest/UserGuide/iam_example_iam_ListGroupsForUser_section.md index 4f4a17b98..54a4d049a 100644 --- a//IAM/latest/UserGuide/iam_example_iam_ListGroupsForUser_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_ListGroupsForUser_section.md @@ -90,0 +91,35 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example returns the list of IAM groups that the IAM user`David` belongs to.** + + + Get-IAMGroupForUser -UserName David + + +**Output:** + + + Arn : arn:aws:iam::123456789012:group/Administrators + CreateDate : 10/20/2014 10:06:24 AM + GroupId : 6WCH4TRY3KIHIEXAMPLE1 + GroupName : Administrators + Path : / + + Arn : arn:aws:iam::123456789012:group/Testers + CreateDate : 12/10/2014 3:39:11 PM + GroupId : RHNZZGQJ7QHMAEXAMPLE2 + GroupName : Testers + Path : / + + Arn : arn:aws:iam::123456789012:group/Developers + CreateDate : 12/10/2014 3:38:55 PM + GroupId : ZU2EOWMK6WBZOEXAMPLE3 + GroupName : Developers + Path : / + + * For API details, see [ListGroupsForUser](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +