0

I want to use an AWS Lambda Pre-SignUp trigger to manually insert a new user into my AWS Cognito User Pool whilst also adding some of their information to a database. I am using the AdminCreateUser function and it is working as intended.

However I cannot seem to find the password key in the lambda trigger event so I am forced to first ask the user to confirm their account.

The event common parameters are show below, Does anyone know how I can access the password?

{
    "version": "string",
    "triggerSource": "string",
    "region": AWSRegion,
    "userPoolId": "string",
    "userName": "string",
    "callerContext": 
        {
            "awsSdkVersion": "string",
            "clientId": "string"
        },
    "request":
        {
            "userAttributes": {
                "string": "string",
                ....
            }
        },
    "response": {}
}
IamBatman
  • 59
  • 4

0 Answers0