Skip to content

/AWS1/CL_APS=>CREATEUSER()

About CreateUser

Creates a new user in the user pool.

Method Signature

IMPORTING

Required arguments:

IV_USERNAME TYPE /AWS1/APSUSERNAME /AWS1/APSUSERNAME

The email address of the user.

Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.

IV_AUTHENTICATIONTYPE TYPE /AWS1/APSAUTHENTICATIONTYPE /AWS1/APSAUTHENTICATIONTYPE

The authentication type for the user. You must specify USERPOOL.

Optional arguments:

IV_MESSAGEACTION TYPE /AWS1/APSMESSAGEACTION /AWS1/APSMESSAGEACTION

The action to take for the welcome email that is sent to a user after the user is created in the user pool. If you specify SUPPRESS, no email is sent. If you specify RESEND, do not specify the first name or last name of the user. If the value is null, the email is sent.

The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.

IV_FIRSTNAME TYPE /AWS1/APSUSERATTRIBUTEVALUE /AWS1/APSUSERATTRIBUTEVALUE

The first name, or given name, of the user.

IV_LASTNAME TYPE /AWS1/APSUSERATTRIBUTEVALUE /AWS1/APSUSERATTRIBUTEVALUE

The last name, or surname, of the user.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_APSCREATEUSERRESULT /AWS1/CL_APSCREATEUSERRESULT