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?

已提問 2 個月前檢視次數 179 次
1 個回答
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

專家
已回答 2 個月前
  • Thanks for your answer - I'll raise this with Support and send the demand signal to the product team via that channel.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南