But what if I added something like userPoolGroupName to cognito custom attributes and I want to read it from the event object in lambda function? How can I dynamically assign the group property?
You can also call other functions from the aws-sdk inside the lambda to get your desired information. adminAddUserToGroup is only one of many function you could use.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Michael, thanks for the useful article!
But what if I added something like
userPoolGroupName
to cognito custom attributes and I want to read it from theevent
object in lambda function? How can I dynamically assign the group property?Thanks!
Using Cognito Lambda Triggers got a lot easier with recent releases. See this post for examples:
aws.amazon.com/en/blogs/mobile/amp...
You can also call other functions from the aws-sdk inside the lambda to get your desired information. adminAddUserToGroup is only one of many function you could use.