/AWS1/IF_IAM=>UPDATELOGINPROFILE()¶
About UpdateLoginProfile¶
Changes the password for the specified IAM user. You can use the CLI, the Amazon Web Services API, or the Users page in the IAM console to change the password for any IAM user. Use ChangePassword to change your own password in the My Security Credentials page in the Amazon Web Services Management Console.
For more information about modifying passwords, see Managing passwords in the IAM User Guide.
Method Signature¶
METHODS /AWS1/IF_IAM~UPDATELOGINPROFILE
IMPORTING
!IV_USERNAME TYPE /AWS1/IAMUSERNAMETYPE OPTIONAL
!IV_PASSWORD TYPE /AWS1/IAMPASSWORDTYPE OPTIONAL
!IV_PASSWORDRESETREQUIRED TYPE /AWS1/IAMBOOLEANOBJECTTYPE OPTIONAL
RAISING
/AWS1/CX_IAMENTTMPYUNMODABLEEX
/AWS1/CX_IAMLIMITEXCEEDEDEX
/AWS1/CX_IAMNOSUCHENTITYEX
/AWS1/CX_IAMPASSWORDPLYVIOEX
/AWS1/CX_IAMSERVICEFAILUREEX
/AWS1/CX_IAMCLIENTEXC
/AWS1/CX_IAMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_username TYPE /AWS1/IAMUSERNAMETYPE /AWS1/IAMUSERNAMETYPE¶
The name of the user whose password you want to update.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Optional arguments:¶
iv_password TYPE /AWS1/IAMPASSWORDTYPE /AWS1/IAMPASSWORDTYPE¶
The new password for the specified IAM user.
The regex pattern used to validate this parameter is a string of characters consisting of the following:
Any printable ASCII character ranging from the space character (
\u0020) through the end of the ASCII character rangeThe printable characters in the Basic Latin and Latin-1 Supplement character set (through
\u00FF)The special characters tab (
\u0009), line feed (\u000A), and carriage return (\u000D)However, the format can be further restricted by the account administrator by setting a password policy on the Amazon Web Services account. For more information, see UpdateAccountPasswordPolicy.
iv_passwordresetrequired TYPE /AWS1/IAMBOOLEANOBJECTTYPE /AWS1/IAMBOOLEANOBJECTTYPE¶
Allows this new password to be used only once by requiring the specified IAM user to set a new password on next sign-in.
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->updateloginprofile(
iv_password = |string|
iv_passwordresetrequired = ABAP_TRUE
iv_username = |string|
).
To change the password for an IAM user¶
The following command creates or changes the password for the IAM user named Bob.
lo_client->updateloginprofile(
iv_password = |SomeKindOfPassword123!@#|
iv_username = |Bob|
).