rahulpsd18 / cognito-backup-restore

AIO Tool for backing up and restoring AWS Cognito User Pools
MIT License
196 stars 64 forks source link

Import the same sub ids #8

Closed kyangy closed 5 years ago

kyangy commented 5 years ago

After creating the backup, how can we import the same sub ids when we restore to a new pool? It generates new sub ids when you restore.

rahulpsd18 commented 5 years ago

As per the response from AWS Employee on this thread, sub is globally unique and hence is unique for user pool as well. Unlike username, which can be reassigned to another user in user pool, sub is never reassigned.

Hope this answers your question.