Skip to content

AWS Cognito

Read the users and groups in an Amazon Cognito user pool, for example while you move its users to VAIF Studio.

Connect it in the console under Integrations > Connectors. See Connectors for how connectors work and who can use them.

Create an IAM user with an access key and a policy that allows cognito-idp:ListUsers and cognito-idp:ListGroups on the user pool’s ARN, and nothing else.

SettingNotes
Access key IDRequiredFor example AKIA....
Secret access keyRequiredStored encrypted and never shown again.
User pool IDRequiredFor example us-east-1_AbCdEf123.
RegionOptionalRead from the pool ID when left blank.
TableFiltersReturns
usersusername, email, page_tokenUsers in the pool (filter by username or email).
groupspage_tokenGroups in the pool.
Terminal window
curl -s -X POST "https://api.vaif.studio/database/connector/$VAIF_PROJECT_ID/query" \
-H "Authorization: Bearer $VAIF_TOKEN" -H "Content-Type: application/json" \
-d '{"wrapperId":"cognito_fdw","table":"users","filters":{"email":"ada@example.com"},"limit":50}'

$VAIF_TOKEN is a console access token. See Connectors for the routes.

Give the key the two list actions only. Users come back 60 to a page, with their email and status.