Create User (v1.0.0)

Command that will create a user and in Cognito and PAL.

Overview

This command in the IAM adapter, can be used to create a new user. The user is required in order to be able to login to the system.

Regardless if the system allows logins, it is required that a user is a pre requisites in order to create a customer. Customer is not created by this adapter. The user is created in AWS Cognito, with some additional information in a DynamoDB table.

Architecture diagram

Payload example

Request

Payload example
{
"Email": "john.doe@example.com",
"FirstName": "John",
"LastName": "Doe",
"MobileNumber": 1234567890,
"Address": {
"AddressLine1": "123 Main St",
"AddressLine2": "Apt 4B",
"AddressLine3": null,
"City": "Anytown"
},
"Attributes": {
},
"SendTempPassword": true
}

The parameter SendTempPassword, will if set to true send out a temporary password. When the user uses the password the user will be verified. Another option is to set it to false, then a 6 digit code will be sent to the user. When the code is verfied the user is also verified.

JSON Schema

11 properties
Emailstring<email>
required

Email address of the user

FirstNamestringnull
LastNamestringnull
MobileNumberintegernull

Mobile number of the user

AddressobjectAddress
AttributesobjectAttributes
required
SendTempPasswordboolean

Send temporary password to the user. Default is false.