AWS IAM documentation change
Summary
Added PowerShell V5 examples for detaching group policies including bulk policy removal
Security assessment
Routine documentation update showing policy management operations without specific security context or vulnerability mitigation
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_DetachGroupPolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_DetachGroupPolicy_section.md index 1809a6d9a..b74d7d088 100644 --- a//IAM/latest/UserGuide/iam_example_iam_DetachGroupPolicy_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_DetachGroupPolicy_section.md @@ -56,0 +57,20 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example detaches the managed group policy whose ARN is`arn:aws:iam::123456789012:policy/TesterAccessPolicy` from the group named `Testers`.** + + + Unregister-IAMGroupPolicy -GroupName Testers -PolicyArn arn:aws:iam::123456789012:policy/TesterAccessPolicy + + +**Example 2: This example finds all the managed policies that are attached to the group named`Testers` and detaches them from the group.** + + + Get-IAMAttachedGroupPolicies -GroupName Testers | Unregister-IAMGroupPolicy -Groupname Testers + + + * For API details, see [DetachGroupPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +