I'm working with an AWS Cognito UserPool.
I have a list of Cognito User IDs. I'm interested in querying Cognito for attributes for each ID. I see that Cognito supports querying one ID at a time, but doesn't support batch queries. Is this the case?
Is there a performant way to convert a list of IDs into a list of objects with user attributes?
Cognito doesn't support batch get-user queries, so you are basically left with 2 options.
If the user pool is not very large, use ListUsers
API to dump all user info. Max batch size is 60.
If your user pool is huge, use multi-threading/processing to fetch users in parallel.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.