How do I look up a cognito user by their sub/UUID?

Mark Keane :

I want to look up a user in my Cognito user pool by their sub, which as far as I can tell, is just their UUID. I would like to do this in Java within a Lambda function but cannot find how to do this in AWS's documenation. Any thoughts?

Chetan Mehta :

As of today this is not possible with Cognito User Pools.

Users can only be looked up using their username or aliases. ListUsers API also allows users to be searched by providing search filters on some standard attributes but sub is not one of them.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=433623&siteId=1