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

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

问题描述

我想通过他们的 sub 在我的 Cognito 用户池中查找用户,据我所知,这只是他们的 UUID.我想在 Lambda 函数中用 Java 执行此操作,但在 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 查找 cognito 用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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