AWS code-library documentation change
Summary
Added SAP ABAP code example for UpdateUser API
Security assessment
Added SAP ABAP implementation for user renaming operation. No security implications beyond normal IAM management operations, with no vulnerability-specific context.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_UpdateUser_section.md b/code-library/latest/ug/iam_example_iam_UpdateUser_section.md index 0594dcacf..a95626915 100644 --- a//code-library/latest/ug/iam_example_iam_UpdateUser_section.md +++ b//code-library/latest/ug/iam_example_iam_UpdateUser_section.md @@ -382,0 +383,29 @@ 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/iam#code-examples). + + + TRY. + lo_iam->updateuser( + iv_username = iv_user_name + iv_newusername = iv_new_user_name ). + MESSAGE 'User updated successfully.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'User does not exist.' TYPE 'E'. + CATCH /aws1/cx_iamentityalrdyexex. + MESSAGE 'New user name already exists.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [UpdateUser](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +