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 个月前187 查看次数
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.

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

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

回答问题的准则