- Newest
- Most votes
- Most comments
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?
Relevant content
- asked a year ago
- asked 2 years ago
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago