AWS Security ChangesHomeSearch

AWS IAM documentation change

Service: IAM · 2025-06-25 · Documentation low

File: IAM/latest/UserGuide/iam_example_iam_RemoveUserFromGroup_section.md

Summary

Added PowerShell V5 examples for removing users from groups

Security assessment

User-group management impacts access control but lacks evidence of addressing a specific security flaw.

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_RemoveUserFromGroup_section.md b/IAM/latest/UserGuide/iam_example_iam_RemoveUserFromGroup_section.md
index fdd9cea05..0c47fd48c 100644
--- a//IAM/latest/UserGuide/iam_example_iam_RemoveUserFromGroup_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_RemoveUserFromGroup_section.md
@@ -63,0 +64,27 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example removes the IAM user`Bob` from the group `Testers`. **
+    
+    
+    Remove-IAMUserFromGroup -GroupName Testers -UserName Bob
+    
+
+**Example 2: This example finds any groups of which IAM user`Theresa` is a member, and then removes `Theresa` from those groups.**
+    
+    
+    $groups = Get-IAMGroupForUser -UserName Theresa 
+    foreach ($group in $groups) { Remove-IAMUserFromGroup -GroupName $group.GroupName -UserName Theresa -Force }
+    
+
+**Example 3: This example shows an alternate way of removing the IAM user`Bob` from the `Testers` group.**
+    
+    
+    Get-IAMGroupForUser -UserName Bob | Remove-IAMUserFromGroup -UserName Bob -GroupName Testers -Force
+    
+
+  * For API details, see [RemoveUserFromGroup](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+