AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/iam_example_iam_AttachGroupPolicy_section.md

Summary

Added PowerShell V5 examples for attaching policies to IAM groups

Security assessment

Demonstrates policy attachment for group permissions management, a core security feature, but no evidence of addressing vulnerabilities.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_AttachGroupPolicy_section.md b/code-library/latest/ug/iam_example_iam_AttachGroupPolicy_section.md
index 0ce2b2003..b7b484322 100644
--- a//code-library/latest/ug/iam_example_iam_AttachGroupPolicy_section.md
+++ b//code-library/latest/ug/iam_example_iam_AttachGroupPolicy_section.md
@@ -58,0 +59,20 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example attaches the customer managed policy named`TesterPolicy` to the IAM group `Testers`. The users in that group are immediately affected by the permissions defined in the default version of that policy.**
+    
+    
+    Register-IAMGroupPolicy -GroupName Testers -PolicyArn arn:aws:iam::123456789012:policy/TesterPolicy
+    
+
+**Example 2: This example attaches the AWS managed policy named`AdministratorAccess` to the IAM group `Admins`. The users in that group are immediately affected by the permissions defined in the latest version of that policy.**
+    
+    
+    Register-IAMGroupPolicy -GroupName Admins -PolicyArn arn:aws:iam::aws:policy/AdministratorAccess
+    
+
+  * For API details, see [AttachGroupPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+