AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-01-25 · Documentation low

File: code-library/latest/ug/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md

Summary

Added SAP ABAP code example for ListUsers operation

Security assessment

Adds user listing functionality documentation without security-specific content or vulnerability fixes

Diff

diff --git a/code-library/latest/ug/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md b/code-library/latest/ug/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md
index 406b420ac..ee675d0f6 100644
--- a//code-library/latest/ug/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md
+++ b//code-library/latest/ug/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md
@@ -390,0 +391,34 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+SAP ABAP
+    
+
+**SDK for SAP ABAP**
+    
+
+###### Note
+
+There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/sap-abap/services/cgp#code-examples). 
+    
+    
+        TRY.
+            DATA(lo_result) = lo_cgp->listusers(
+              iv_userpoolid = iv_user_pool_id
+            ).
+    
+            ot_users = lo_result->get_users( ).
+    
+            MESSAGE |Found { lines( ot_users ) } users in the pool.| TYPE 'I'.
+    
+          CATCH /aws1/cx_cgpresourcenotfoundex INTO DATA(lo_ex).
+            MESSAGE |User pool { iv_user_pool_id } not found.| TYPE 'E'.
+    
+          CATCH /aws1/cx_cgpnotauthorizedex INTO DATA(lo_auth_ex).
+            MESSAGE 'Not authorized to list users.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [ListUsers](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+