AWS Security ChangesHomeSearch

AWS IAM documentation change

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

File: IAM/latest/UserGuide/iam_example_iam_PutUserPolicy_section.md

Summary

Added PowerShell V5 example for attaching an inline policy to a user

Security assessment

The change documents general policy management, not a specific security feature or vulnerability mitigation.

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_PutUserPolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_PutUserPolicy_section.md
index d3b00ee82..49e25505c 100644
--- a//IAM/latest/UserGuide/iam_example_iam_PutUserPolicy_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_PutUserPolicy_section.md
@@ -129,0 +130,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates an inline policy named`EC2AccessPolicy` and embeds it in the IAM user `Bob`. If an inline policy with the same name already exists, then it is overwritten. The JSON policy content comes from the file `EC2AccessPolicy.json`. Note that you must use the `-Raw` parameter to successfully process the content of the JSON file.**
+    
+    
+    Write-IAMUserPolicy -UserName Bob -PolicyName EC2AccessPolicy -PolicyDocument (Get-Content -Raw EC2AccessPolicy.json)
+    
+
+  * For API details, see [PutUserPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+