AWS Security ChangesHomeSearch

AWS IAM documentation change

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

File: IAM/latest/UserGuide/iam_example_iam_GetUser_section.md

Summary

Added PowerShell V5 examples for Get-IAMUser showing user details retrieval

Security assessment

Documents user account inspection including password last used date, relevant for security audits but not addressing vulnerabilities

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_GetUser_section.md b/IAM/latest/UserGuide/iam_example_iam_GetUser_section.md
index dedc8b5fc..0d3caeed7 100644
--- a//IAM/latest/UserGuide/iam_example_iam_GetUser_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_GetUser_section.md
@@ -242,0 +243,40 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example retrieves details about the user named`David`.**
+    
+    
+    Get-IAMUser -UserName David
+    
+
+**Output:**
+    
+    
+    Arn              : arn:aws:iam::123456789012:user/David
+    CreateDate       : 12/10/2014 3:39:27 PM
+    PasswordLastUsed : 3/19/2015 8:44:04 AM
+    Path             : /
+    UserId           : Y4FKWQCXTA52QEXAMPLE1
+    UserName         : David
+
+**Example 2: This example retrieves details about the currently signed-in IAM user.**
+    
+    
+    Get-IAMUser
+    
+
+**Output:**
+    
+    
+    Arn              : arn:aws:iam::123456789012:user/Bob
+    CreateDate       : 10/16/2014 9:03:09 AM
+    PasswordLastUsed : 3/4/2015 12:12:33 PM
+    Path             : /
+    UserId           : 7K3GJEANSKZF2EXAMPLE2
+    UserName         : Bob
+
+  * For API details, see [GetUser](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+