Limit on Listing User Pools

0

I'm developing a multi-tenant SaaS application in which each tenant will have a dedicated user pool for its own users. One constraint is that no one can be a root user in more that one user pool. So during user registration, to determine whether an email address is already associated with a root user account, I have to check all users across all user pools. Here's the problem: in Cognito, the listUserPools API has a MaxResults property with an upper limit of 60. If there are 100 user pools in my application, what is the best way to search across all of them given that 60-item search results limit?

Alternatively, is there a way to filter on an email address across all user pools at once, rather than by each user pool individually? I could maintain a separate table of root users, but that seems redundant. Please advise.

AWS
posta 2 anni fa528 visualizzazioni
1 Risposta
1

Hi,

It is best to maintain this mapping in an external store like DynamoDB table, this will give you better and easier query capabilities.

AWS
ESPERTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande