When will Cognito User Pool custom attributes be indexed for searching and filtering?

0

I am creating the user administration panel for a React web app, and need to be able to filter users based on custom attributes. The documentation states that custom attributes cannot be indexed, and therefore cannot be used in searches.

A possible workaround would be to abuse the OIDC Standard Claims by repurposing unused standard attributes, but I'm reluctant to do that, in case those attributes are needed in future.

A slightly less bad workaround is to retrieve all users and filter at the client, but that will have performance impacts for a large user pool, and potentially expose data about other users not relevant to the query.

Question to the Cognito product team: is support for indexing custom attributes on the roadmap?

1 Risposta
0

Workarounds and Considerations:

Use of Standard Attributes:

As you mentioned, repurposing unused standard attributes (OIDC claims) is one potential workaround. However, this approach can lead to issues if those attributes are needed in the future for their intended purposes.

Client-Side Filtering:

Another approach is to retrieve all users and filter them on the client-side. While this method can work for smaller user pools, it can have significant performance implications as the number of users grows. Additionally, this method may expose unnecessary data to the client, which can be a security risk.

Custom Database or Data Store:

A more scalable and secure approach would be to maintain a separate database or data store where you store the users' information, including custom attributes. You can then perform more complex queries and filtering operations using this database. This adds some complexity to your architecture but provides more flexibility.

Cognito Roadmap:

As of my last update, there is no public information available regarding when or if Cognito will support indexing custom attributes for searching and filtering. AWS often updates its services based on customer feedback, so keeping an eye on the AWS forums, release notes, or directly engaging with AWS support might provide updates on this feature.

https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html

ESPERTO
con risposta 2 mesi fa
  • Thanks for your answer - I'll raise this with Support and send the demand signal to the product team via that channel.

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