SignUp User via AWS Lambda & Cognito (Serverless Architecture)

"NotAuthorizedException: SignUp is not permitted for this user pool" exception is thrown when the user pool only allows administrators to create the users via the AdminCreateUser API. With this setting enabled, SignUp API cannot be called and will throw this error.

If you are calling this from a lambda trigger you can use AdminCreateUser API or disable this setting so your user pool allows SignUp API calls.


As Chean Mehta pointed out, you can disable the AdminCreateUser setting for SignUp API to work, for that you have to set AllowAdminCreateUserOnly to false in your serverless cognito configuration or you can disable this by following these steps:

  1. Go to your cognito console.
  2. Select your user pool.
  3. Select Policies under General settings.
  4. Select Allow users to sign themselves up
  5. and Save changes