/AWS1/IF_REK=>CREATEUSER()¶
About CreateUser¶
Creates a new User within a collection specified by CollectionId. Takes
UserId as a parameter, which is a user provided ID which should be unique
within the collection. The provided UserId will alias the system generated UUID
to make the UserId more user friendly.
Uses a ClientToken, an idempotency token that ensures a call to
CreateUser completes only once. If the value is not supplied, the AWS SDK
generates an idempotency token for the requests. This prevents retries after a network error
results from making multiple CreateUser calls.
Method Signature¶
METHODS /AWS1/IF_REK~CREATEUSER
IMPORTING
!IV_COLLECTIONID TYPE /AWS1/REKCOLLECTIONID OPTIONAL
!IV_USERID TYPE /AWS1/REKUSERID OPTIONAL
!IV_CLIENTREQUESTTOKEN TYPE /AWS1/REKCLIENTREQUESTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rekcreateuserresponse
RAISING
/AWS1/CX_REKACCESSDENIEDEX
/AWS1/CX_REKCONFLICTEXCEPTION
/AWS1/CX_REKIDEMPOTENTPRMMIS00
/AWS1/CX_REKINTERNALSERVERERR
/AWS1/CX_REKINVALIDPARAMETEREX
/AWS1/CX_REKPROVTHRUPUTEXCDEX
/AWS1/CX_REKRESOURCENOTFOUNDEX
/AWS1/CX_REKSERVICEQUOTAEXCDEX
/AWS1/CX_REKTHROTTLINGEX
/AWS1/CX_REKCLIENTEXC
/AWS1/CX_REKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_collectionid TYPE /AWS1/REKCOLLECTIONID /AWS1/REKCOLLECTIONID¶
The ID of an existing collection to which the new UserID needs to be created.
iv_userid TYPE /AWS1/REKUSERID /AWS1/REKUSERID¶
ID for the UserID to be created. This ID needs to be unique within the collection.
Optional arguments:¶
iv_clientrequesttoken TYPE /AWS1/REKCLIENTREQUESTTOKEN /AWS1/REKCLIENTREQUESTTOKEN¶
Idempotent token used to identify the request to
CreateUser. If you use the same token with multipleCreateUserrequests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rekcreateuserresponse /AWS1/CL_REKCREATEUSERRESPONSE¶
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(
iv_clientrequesttoken = |string|
iv_collectionid = |string|
iv_userid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.
CreateUser¶
Creates a new User within a collection specified by CollectionId.
DATA(lo_result) = lo_client->createuser(
iv_collectionid = |MyCollection|
iv_userid = |DemoUser|
).