#Access admin queries from lambda

1 messages · Page 1 of 1 (latest)

buoyant elk
#

Hi,
I have a lambda function running some backend checks and I would need to access any user details from cognito.

I’m not sur what the most efficient approach is, and I’m currently trying to use admin queries from within the lambda.

Amplify function. Is configured to access admin queries (got the name and appid env setup) and looking for example on how to call getUser (NodeJS).

I'm still trying to understand how to handle the authentication from the lambda to the adminqueries api.

idle cloud
#

Hey Kaneda - wondering if you found a good solution to either wire the adminqueries api endpoint or to use an amplify library to hit the api with the api id only?

solid rampart
#

I'm also interested in this matter ! Currently investigating if I find any elegant workaround I may share it to you soon