如何通过sub / UUID查找认知用户? [英] How do I look up a cognito user by their sub/UUID?

查看:93
本文介绍了如何通过sub / UUID查找认知用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Cognito用户池中按其子查找一个用户,据我所知,这只是他们的UUID。我想在Java中使用Lambda函数执行此操作,但是找不到在AWS的文档中如何执行此操作。

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?

推荐答案

到目前为止,使用Cognito用户池是不可能的。

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

只能使用用户名或别名来查找用户。 ListUsers API还允许通过在某些标准属性,但 sub 不是其中之一。

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.

这篇关于如何通过sub / UUID查找认知用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆