I have an authenticated user in AWS Cognito service and want to store his unique identifier in the database. Should I store user\'s username (it\'s his phone number) or his \"su
One of the current limitations (to this date) of Cognito is listing users, if you save the sub
in your own database for identify your users, and later you try to recover information of this saved user from cognito is not possible, due aws doesn't allow filter by sub or custom attributes, so use username
for saving an uuid and prefered_username
as alias for real username.
In javascript AWS.CognitoIdentityServiceProvider.ListUser, same for others.