1 Answer
- Newest
- Most votes
- Most comments
0
Can you use the Custom Message Lambda for CustomMessage_ForgotPassword case and do a look up in the event.request.userAttributes for the appropriate value you need to craft your own message.
reference: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-message.html
answered 3 years ago
Relevant content
- asked 2 years ago
- asked 7 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 9 months ago

Thanks Jeff. One problem I got was that if I don't have usernameParameter in my template then the CustomMessage_ForgotPassword trigger is ignored. I suppose I could hide that variable in the html but that doesn't work for anything other than HTML.
I just confirmed that if I hide the usernameParameter in a hidden span tag in the custom message then the custom message is sent successfully (vs the default userpool message)