Reputation: 8705
In android application, i am setting Cognito identity as follows:
Dataset dataset = ....syncClient.openOrCreateDataset("WHATEVER");
dataset.put("name", name);
dataset.put("email", email);
As a result Identity Id is created in this format:
us-east-1:1xxxxxx-999d-999x-NNNx-fxxxxxxxxxxx
The Identity Browser on AWS Web Console allows one to search only by Identity Id.
Now i want to search the identity by email (because that's all i know about the user). How can i search the identity by email in amazon web-console?
Alternatively, can i set email id as the Identity Id itself - if yes, how?
Upvotes: 2
Views: 911
Reputation: 783
What you can do for now is store that id and the email in your own database somewhere via your own API if you don't want to add AWS services. Or do what pierre-leduc said
Upvotes: 0
Reputation: 1
What you can possibly do to retrieve the identityId, is to write a Lambda function that will stored the email address of your user along with the identityId in a DynamoDB table when the Cognito Sync Event is fired.
Doing this you can then search in DynamoB using the user email address to retrieve the IdentityID of the player.
Upvotes: 0
Reputation: 5775
As of now, the only way to search an identity on the console is by identity id. We have heard the request from other customers to make it easier to search by another factor and will consider it in future updates to the service.
Upvotes: 1