AWS IAM documentation change
Summary
Added PowerShell V5 examples for detaching user policies including bulk removal
Security assessment
Documentation of normal permission management operations without security-specific context
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_DetachUserPolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_DetachUserPolicy_section.md index 28e1bd326..3ba2cbbd2 100644 --- a//IAM/latest/UserGuide/iam_example_iam_DetachUserPolicy_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_DetachUserPolicy_section.md @@ -63,0 +64,20 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example detaches the managed policy whose ARN is`arn:aws:iam::123456789012:policy/TesterPolicy` from the IAM user named `Bob`.** + + + Unregister-IAMUserPolicy -UserName Bob -PolicyArn arn:aws:iam::123456789012:policy/TesterPolicy + + +**Example 2: This example finds all the managed policies that are attached to the IAM user named`Theresa` and detaches those policies from the user.** + + + Get-IAMAttachedUserPolicyList -UserName Theresa | Unregister-IAMUserPolicy -Username Theresa + + + * For API details, see [DetachUserPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +