AWS Security ChangesHomeSearch

AWS cognito documentation change

Service: cognito · 2026-01-25 · Documentation low

File: cognito/latest/developerguide/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md

Summary

Added SAP ABAP SDK code example for ListUsers API including error handling for resource not found and authorization failures

Security assessment

The change adds a code example for an existing API but does not address vulnerabilities or disclose security fixes. The authorization error handling is standard API practice.

Diff

diff --git a/cognito/latest/developerguide/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md b/cognito/latest/developerguide/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md
index e455f27ce..a97328618 100644
--- a//cognito/latest/developerguide/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md
+++ b//cognito/latest/developerguide/cognito-identity-provider_example_cognito-identity-provider_ListUsers_section.md
@@ -388,0 +389,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_. 
+
+
+
+