<@U01JVDKASAC> <@U01J5Q8HV5Z> - Is there a way to ...
# help
k
@Frank @Jay - Is there a way to get the current user attribute (ideally custom attributes) with in the lambda? event.requestcontext.authorizer doesn’t seem to have the attributes..
f
Hey @karthik r u using IAM or JWT authorizer for ur api?
k
IAM
@Frank - so I was able to get it by attaching cognito-idp:AdminGetUser policy to my Api and then use that function within the lambda passing username and userpoolID from event.requestContext.authorizer.iam.cognitoIdentity.amr[2]..
f
Oh nice. yeah that’s how I was going to suggest 👍