AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 examples for document permission management

Security assessment

Documents how to configure document sharing permissions, which is a security-related feature but doesn't address specific vulnerabilities

Diff

diff --git a/code-library/latest/ug/ssm_example_ssm_ModifyDocumentPermission_section.md b/code-library/latest/ug/ssm_example_ssm_ModifyDocumentPermission_section.md
index 12e0116d1..c342f973c 100644
--- a//code-library/latest/ug/ssm_example_ssm_ModifyDocumentPermission_section.md
+++ b//code-library/latest/ug/ssm_example_ssm_ModifyDocumentPermission_section.md
@@ -59,0 +60,20 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example adds "share" permissions to all accounts for a document. There is no output if the command succeeds.**
+    
+    
+    Edit-SSMDocumentPermission -Name "RunShellScript" -PermissionType "Share" -AccountIdsToAdd all
+    
+
+**Example 2: This example adds "share" permissions to a specific account for a document. There is no output if the command succeeds.**
+    
+    
+    Edit-SSMDocumentPermission -Name "RunShellScriptNew" -PermissionType "Share" -AccountIdsToAdd "123456789012"
+    
+
+  * For API details, see [ModifyDocumentPermission](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+