Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

No Option to filter attributes based on Regex Match in Cognito #725

Closed
zubairzahoor opened this issue Mar 8, 2020 · 26 comments
Closed

No Option to filter attributes based on Regex Match in Cognito #725

zubairzahoor opened this issue Mar 8, 2020 · 26 comments
Assignees
Labels
cognito-idp feature-request New feature or request service-api This issue pertains to the AWS API

Comments

@zubairzahoor
Copy link

I need to get a list of emails that end with a particular domain(s) from Cognito by using cognito.listUsers({}).
Right now I can only either provide the filter type for an exact match using = or for a prefix match using ^= which is extremely limited to say the least.
I (along with possibly many other developers) would like to have the ability to list users from cognito based on a match with a regex pattern.
Or have a options like 'contains', 'not contains', 'ends with', 'exists' and more like these to be able to list the users we exactly want.

Right now, I have to retrieve each and every user in Cognito User Pool using Pagination and then filter them based on what I need which of course is no good when the total number of Users goes in thousands (given there is a limit of 60 users per page and a rate limit on number of requests)

@zubairzahoor zubairzahoor added the feature-request New feature or request label Mar 8, 2020
@github-actions
Copy link

github-actions bot commented Mar 9, 2021

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

@github-actions github-actions bot added closing-soon This issue will be closed soon closed-for-staleness This issue was closed because it didn't receive updates and removed closing-soon This issue will be closed soon labels Mar 9, 2021
@kellermartin13
Copy link

Following up on this - I would also like the ability to filter by regex.

@Channeas
Copy link

+1 Filtering with regex would be extremely useful

@s-stefanov
Copy link

+1

@jmcouch
Copy link

jmcouch commented May 13, 2021

+1
it is unfortunate this was closed, would be extremely useful

@ajredniwja ajredniwja reopened this May 13, 2021
@eceramanan
Copy link

+1 Filtering with regex would be extremely useful

@ghost
Copy link

ghost commented Jun 17, 2021

+1
Even if not Regex, more options like contains() or endswith() would be a welcomed addition.

@clovisj
Copy link

clovisj commented Oct 16, 2021

+1

4 similar comments
@npkumaroyo
Copy link

+1

@dsilva342
Copy link

+1

@john-at-mc
Copy link

+1

@kennedysam97
Copy link

+1

@evanmcarlson
Copy link

@ajredniwja @awstools please review this issue; the ability to only query a prefix is not helpful.

@GaiAshkenazyVia
Copy link

+1

@roniceyemeli
Copy link

roniceyemeli commented Jan 8, 2023

+1, please open this issue again

@mibrennan
Copy link

+1, would love this

@Beni312
Copy link

Beni312 commented Apr 19, 2023

+1, i need this

@mmandviwala
Copy link

+1

2 similar comments
@ed100miles
Copy link

+1

@pranavacharyafdb
Copy link

+1

@AntonioLuisME
Copy link

3.5 years on and still no response.

I don't understand why there are filter restrictions in the first place. It seems like such a miss to not allow contains() type search from the get go. It really limits the apps that can be built using AWS pool data unless of course you build your own archaic workarounds.

As for devs reading, I'd recommend stop using a service that does not serve or listen to our needs.

@felipeabou
Copy link

+++++++++++++++++++++++++1

@kmartin-bh
Copy link

I've long since abandoned cognito. Far too restrictive. I do love getting emails from this thread every few months 🙃

@AntShep
Copy link

AntShep commented Apr 15, 2024

+1 like others :)

@kellertk kellertk added service-api This issue pertains to the AWS API and removed closed-for-staleness This issue was closed because it didn't receive updates labels Apr 23, 2024
@kellertk kellertk transferred this issue from aws/aws-sdk-js Apr 23, 2024
@RanVaknin RanVaknin self-assigned this Apr 29, 2024
@RanVaknin
Copy link

RanVaknin commented Jul 31, 2024

Hello everyone on this thread.

Thank you for your patience. We had to dig this issue up from the old JS SDK v2 repo that is going into maintenance mode. We apologize for not seeing this sooner. We now have better tools that help detect languishing issues of this sort, so hopefully we can minimize these sorts of scenarios where issues get unnoticed going forward.

To be clear, this feature request is intended for the Cognito service itself, and not the SDK team. The ask to add regex based service-side filtering is an API enhancement. Since the AWS SDKs are code generated from the API of the various AWS services, the SDK team cannot add this filtering functionality, especially because this needs to be supported with the service itself first.

I have upstreamed this feature request to the Cognito team directly (internal ticket #P145422926). Our team does not have visibility as to when / if this is going to be implemented, all we can do is advocate on your behalf and make sure this is seen by the right people.

If any of the 36+ participants on this thread has access to AWS support via the AWS console, I highly encourage you to open a support ticket and reference the ticket ID mentioned above.

Since this is not directly actionable by the SDK team, once we hear back from the service team I will provide an update and close this issue.

Thanks again for all of the engagement,
Ran~

@RanVaknin RanVaknin closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
Copy link

This issue is now closed.

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cognito-idp feature-request New feature or request service-api This issue pertains to the AWS API
Projects
None yet
Development

No branches or pull requests