AWS code-library documentation change
Summary
Added PowerShell V5 example for ListAttachedUserPolicies command with sample output and API reference
Security assessment
Adds user policy listing example without security implications or vulnerability references.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_ListAttachedUserPolicies_section.md b/code-library/latest/ug/iam_example_iam_ListAttachedUserPolicies_section.md index 7eca36f5e..7e531d105 100644 --- a//code-library/latest/ug/iam_example_iam_ListAttachedUserPolicies_section.md +++ b//code-library/latest/ug/iam_example_iam_ListAttachedUserPolicies_section.md @@ -73,0 +74,21 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This command returns the names and ARNs of the managed policies for the IAM user named`Bob` in the AWS account. To see the list of inline policies that are embedded in the IAM user, use the `Get-IAMUserPolicyList` command.** + + + Get-IAMAttachedUserPolicyList -UserName "Bob" + + +**Output:** + + + PolicyArn PolicyName + --------- ---------- + arn:aws:iam::aws:policy/TesterPolicy TesterPolicy + + * For API details, see [ListAttachedUserPolicies](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +