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.

gefragt vor 9 Monaten506 Aufrufe
1 Antwort
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
beantwortet vor 9 Monaten
profile picture
EXPERTE
überprüft vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen