AWS Security ChangesHomeSearch

AWS IAM documentation change

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

File: IAM/latest/UserGuide/iam_example_iam_ListEntitiesForPolicy_section.md

Summary

Added PowerShell V5 example for listing entities associated with a policy

Security assessment

Improves documentation for policy impact analysis (security auditing) without addressing specific security flaws

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_ListEntitiesForPolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_ListEntitiesForPolicy_section.md
index 7bd7b10e1..621f3de27 100644
--- a//IAM/latest/UserGuide/iam_example_iam_ListEntitiesForPolicy_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_ListEntitiesForPolicy_section.md
@@ -81,0 +82,23 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example returns a list of IAM groups, roles, and users who have the policy`arn:aws:iam::123456789012:policy/TestPolicy` attached.**
+    
+    
+    Get-IAMEntitiesForPolicy -PolicyArn "arn:aws:iam::123456789012:policy/TestPolicy"
+    
+
+**Output:**
+    
+    
+    IsTruncated  : False
+    Marker       : 
+    PolicyGroups : {}
+    PolicyRoles  : {testRole}
+    PolicyUsers  : {Bob, Theresa}
+
+  * For API details, see [ListEntitiesForPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+