AWS code-library documentation change
Summary
Added PowerShell V5 example for ListGroupsForUser command with sample output and API reference
Security assessment
Adds user group membership example without security implications or vulnerability references.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_ListGroupsForUser_section.md b/code-library/latest/ug/iam_example_iam_ListGroupsForUser_section.md index 9d1aaaeec..31ee8cd73 100644 --- a//code-library/latest/ug/iam_example_iam_ListGroupsForUser_section.md +++ b//code-library/latest/ug/iam_example_iam_ListGroupsForUser_section.md @@ -92,0 +93,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)_. + + + +