/AWS1/IF_IDS=>CREATEUSER()¶
About CreateUser¶
Creates a user within the specified identity store.
Method Signature¶
METHODS /AWS1/IF_IDS~CREATEUSER
IMPORTING
!IV_IDENTITYSTOREID TYPE /AWS1/IDSIDENTITYSTOREID OPTIONAL
!IV_USERNAME TYPE /AWS1/IDSUSERNAME OPTIONAL
!IO_NAME TYPE REF TO /AWS1/CL_IDSNAME OPTIONAL
!IV_DISPLAYNAME TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IV_NICKNAME TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IV_PROFILEURL TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IT_EMAILS TYPE /AWS1/CL_IDSEMAIL=>TT_EMAILS OPTIONAL
!IT_ADDRESSES TYPE /AWS1/CL_IDSADDRESS=>TT_ADDRESSES OPTIONAL
!IT_PHONENUMBERS TYPE /AWS1/CL_IDSPHONENUMBER=>TT_PHONENUMBERS OPTIONAL
!IV_USERTYPE TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IV_TITLE TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IV_PREFERREDLANGUAGE TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IV_LOCALE TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IV_TIMEZONE TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IT_PHOTOS TYPE /AWS1/CL_IDSPHOTO=>TT_PHOTOS OPTIONAL
!IV_WEBSITE TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IV_BIRTHDATE TYPE /AWS1/IDSSENSITIVESTRINGTYPE OPTIONAL
!IT_EXTENSIONS TYPE /AWS1/CL_RT_DOCUMENT=>TT_MAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_idscreateuserresponse
RAISING
/AWS1/CX_IDSACCESSDENIEDEX
/AWS1/CX_IDSINTERNALSERVEREX
/AWS1/CX_IDSTHROTTLINGEX
/AWS1/CX_IDSCONFLICTEXCEPTION
/AWS1/CX_IDSRESOURCENOTFOUNDEX
/AWS1/CX_IDSSERVICEQUOTAEXCDEX
/AWS1/CX_IDSVALIDATIONEX
/AWS1/CX_IDSCLIENTEXC
/AWS1/CX_IDSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_identitystoreid TYPE /AWS1/IDSIDENTITYSTOREID /AWS1/IDSIDENTITYSTOREID¶
The globally unique identifier for the identity store.
Optional arguments:¶
iv_username TYPE /AWS1/IDSUSERNAME /AWS1/IDSUSERNAME¶
A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.
AdministratorandAWSAdministratorsare reserved names and can't be used for users or groups.
io_name TYPE REF TO /AWS1/CL_IDSNAME /AWS1/CL_IDSNAME¶
An object containing the name of the user. When used in IAM Identity Center, this parameter is required.
iv_displayname TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
A string containing the name of the user. This value is typically formatted for display when the user is referenced. For example, "John Doe." When used in IAM Identity Center, this parameter is required.
iv_nickname TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
A string containing an alternate name for the user.
iv_profileurl TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
A string containing a URL that might be associated with the user.
it_emails TYPE /AWS1/CL_IDSEMAIL=>TT_EMAILS TT_EMAILS¶
A list of
it_addresses TYPE /AWS1/CL_IDSADDRESS=>TT_ADDRESSES TT_ADDRESSES¶
A list of
Addressobjects containing addresses associated with the user.
it_phonenumbers TYPE /AWS1/CL_IDSPHONENUMBER=>TT_PHONENUMBERS TT_PHONENUMBERS¶
A list of
PhoneNumberobjects containing phone numbers associated with the user.
iv_usertype TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
A string indicating the type of user. Possible values are left unspecified. The value can vary based on your specific use case.
iv_title TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
A string containing the title of the user. Possible values are left unspecified. The value can vary based on your specific use case.
iv_preferredlanguage TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
A string containing the preferred language of the user. For example, "American English" or "en-us."
iv_locale TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
A string containing the geographical region or location of the user.
iv_timezone TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
A string containing the time zone of the user.
it_photos TYPE /AWS1/CL_IDSPHOTO=>TT_PHOTOS TT_PHOTOS¶
A list of photos associated with the user. You can add up to 3 photos per user. Each photo can include a value, type, display name, and primary designation.
iv_website TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
The user's personal website or blog URL. This field allows users to provide a link to their personal or professional website.
iv_birthdate TYPE /AWS1/IDSSENSITIVESTRINGTYPE /AWS1/IDSSENSITIVESTRINGTYPE¶
The user's birthdate in YYYY-MM-DD format. This field supports standard date format for storing personal information.
it_extensions TYPE /AWS1/CL_RT_DOCUMENT=>TT_MAP TT_MAP¶
A map with additional attribute extensions for the user. Each map key corresponds to an extension name, while map values represent extension data in
Documenttype (not supported by Java V1, Go V1 and older versions of the CLI).aws:identitystore:enterpriseis the only supported extension name.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_idscreateuserresponse /AWS1/CL_IDSCREATEUSERRESPONSE¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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.
DATA(lo_result) = lo_client->createuser(
io_name = new /aws1/cl_idsname(
iv_familyname = |string|
iv_formatted = |string|
iv_givenname = |string|
iv_honorificprefix = |string|
iv_honorificsuffix = |string|
iv_middlename = |string|
)
it_addresses = VALUE /aws1/cl_idsaddress=>tt_addresses(
(
new /aws1/cl_idsaddress(
iv_country = |string|
iv_formatted = |string|
iv_locality = |string|
iv_postalcode = |string|
iv_primary = ABAP_TRUE
iv_region = |string|
iv_streetaddress = |string|
iv_type = |string|
)
)
)
it_emails = VALUE /aws1/cl_idsemail=>tt_emails(
(
new /aws1/cl_idsemail(
iv_primary = ABAP_TRUE
iv_type = |string|
iv_value = |string|
)
)
)
it_extensions = VALUE /aws1/cl_rt_document=>tt_map(
(
VALUE /aws1/cl_rt_document=>ts_document_maprow(
key = |string|
value = /AWS1/CL_RT_DOCUMENT=>FROM_JSON_STR( |\{"foo":"this is a JSON object..."\}| )
)
)
)
it_phonenumbers = VALUE /aws1/cl_idsphonenumber=>tt_phonenumbers(
(
new /aws1/cl_idsphonenumber(
iv_primary = ABAP_TRUE
iv_type = |string|
iv_value = |string|
)
)
)
it_photos = VALUE /aws1/cl_idsphoto=>tt_photos(
(
new /aws1/cl_idsphoto(
iv_display = |string|
iv_primary = ABAP_TRUE
iv_type = |string|
iv_value = |string|
)
)
)
iv_birthdate = |string|
iv_displayname = |string|
iv_identitystoreid = |string|
iv_locale = |string|
iv_nickname = |string|
iv_preferredlanguage = |string|
iv_profileurl = |string|
iv_timezone = |string|
iv_title = |string|
iv_username = |string|
iv_usertype = |string|
iv_website = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_identitystoreid = lo_result->get_identitystoreid( ).
lv_resourceid = lo_result->get_userid( ).
ENDIF.