Is Cognito pool user sub attribute globally unique?

0

I'd like to know whether the sub attribute is globally unique across all user pools. Thanks

已提问 1 年前980 查看次数
2 回答
0

I tried in past with common sub and it didn't allow me to do so , i can say sub is a globally unique identifier, across pools . Basically when creating a user , Cognito will assign a generated unique IDs (the sub attribute). This attribute cannot be changed and in case you import users from another pool/backup it will change. Just on side-note sub risks data loss and can make it difficult to migrate or recover a userpool. Since sub is globally unique, any restored user data will have new sub values. It will mean re-keying your app database with the new sub keys, whereas if you had used username you could restore your pool as expected.

已回答 1 年前
0

Sub is globally unique in the whole Cognito User Pool ecosystem.

AWS
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则