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

后端 未结 4 1513
终归单人心
终归单人心 2020-12-16 13:05

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 c

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 13:21

    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.

提交回复
热议问题