aws-sdk-js
aws-sdk-js copied to clipboard
No Option to filter attributes based on Regex Match in Cognito
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)
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.
Following up on this - I would also like the ability to filter by regex.
+1 Filtering with regex would be extremely useful
+1
+1 it is unfortunate this was closed, would be extremely useful
+1 Filtering with regex would be extremely useful
+1 Even if not Regex, more options like contains() or endswith() would be a welcomed addition.
+1
+1
+1
+1
+1
@ajredniwja @awstools please review this issue; the ability to only query a prefix is not helpful.
+1
+1, please open this issue again
+1, would love this
+1, i need this
+1
+1
+1
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.
+++++++++++++++++++++++++1
I've long since abandoned cognito. Far too restrictive. I do love getting emails from this thread every few months 🙃
+1 like others :)