Cognito ListUsers

0

I need to find a user in Cognito by email address. There is a ListUsers operation which supports filtering by email field. I wanted to confirm that this operation uses index and not scan, and will be performant on user pools with significant number of users.

asked 8 months ago461 views
1 Answer
0

You are correct that to list users by email address in Amazon Cognito using the AWS CLI, you can use the following command which is using an index.

aws cognito-idp list-users --filter "email = 'example@email.com'"

For more information, please see the Amazon Cognito ListUsers API documentation: https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/list-users.html

profile pictureAWS
answered 8 months ago
profile picture
EXPERT
reviewed 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions