- 最新
- 最多得票
- 最多評論
AWS Cognito doesn't have a direct method to retrieve user information using the user ID. The workarounds include using the ListUsers
method with a filter for the specific user ID, or the GetUser
method with an Access Token.
https://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html
Hello, can you describe what you're looking to achieve in a little more detail? It sounds like you want to store only the the sub
attribute for a user, and then be able to query their full details using that identifier. The sub
attribute is the unique identifier for each user.
This should be achievable using the ListUsers
API together with the sub
as a filter.
You describe this in your question, is there a reason this approach isn't sufficient?
相關內容
- 已提問 23 天前
- AWS 官方已更新 6 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前