AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for creating IAM user with notes about login profiles and access keys

Security assessment

Documentation emphasizes the need for separate security measures (login profiles/access keys) when creating users, promoting security best practices.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_CreateUser_section.md b/code-library/latest/ug/iam_example_iam_CreateUser_section.md
index 6f9c9a767..c05408dc5 100644
--- a//code-library/latest/ug/iam_example_iam_CreateUser_section.md
+++ b//code-library/latest/ug/iam_example_iam_CreateUser_section.md
@@ -644,0 +645,24 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates an IAM user named`Bob`. If Bob needs to sign in to the AWS console, then you must separately run the command `New-IAMLoginProfile` to create a sign-in profile with a password. If Bob needs to run AWS PowerShell or cross-platform CLI commands or make AWS API calls, then you must separately run the `New-IAMAccessKey` command to create access keys.**
+    
+    
+    New-IAMUser -UserName Bob
+    
+
+**Output:**
+    
+    
+    Arn              : arn:aws:iam::123456789012:user/Bob
+    CreateDate       : 4/22/2015 12:02:11 PM
+    PasswordLastUsed : 1/1/0001 12:00:00 AM
+    Path             : /
+    UserId           : AIDAJWGEFDMEMEXAMPLE1
+    UserName         : Bob
+
+  * For API details, see [CreateUser](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+