aws-sdk-js icon indicating copy to clipboard operation
aws-sdk-js copied to clipboard

No Option to filter attributes based on Regex Match in Cognito

Open zubairzahoor opened this issue 4 years ago • 21 comments

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 avatar Mar 08 '20 07:03 zubairzahoor

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[bot] avatar Mar 09 '21 00:03 github-actions[bot]

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

kellermartin13 avatar Mar 30 '21 14:03 kellermartin13

+1 Filtering with regex would be extremely useful

Channeas avatar Apr 27 '21 06:04 Channeas

+1

s-stefanov avatar May 05 '21 07:05 s-stefanov

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

jmcouch avatar May 13 '21 20:05 jmcouch

+1 Filtering with regex would be extremely useful

eceramanan avatar Jun 11 '21 14:06 eceramanan

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

ghost avatar Jun 17 '21 17:06 ghost

+1

clovisj avatar Oct 16 '21 10:10 clovisj

+1

npkumaroyo avatar Nov 03 '21 04:11 npkumaroyo

+1

dsilva342 avatar Jan 17 '22 01:01 dsilva342

+1

john-at-mc avatar May 27 '22 18:05 john-at-mc

+1

kennedysam97 avatar May 27 '22 19:05 kennedysam97

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

evanmcarlson avatar Aug 18 '22 18:08 evanmcarlson

+1

GaiAshkenazyVia avatar Aug 29 '22 11:08 GaiAshkenazyVia

+1, please open this issue again

roniceyemeli avatar Jan 08 '23 10:01 roniceyemeli

+1, would love this

mibrennan avatar Feb 03 '23 20:02 mibrennan

+1, i need this

Beni312 avatar Apr 19 '23 09:04 Beni312

+1

mmandviwala avatar May 31 '23 20:05 mmandviwala

+1

ed100miles avatar Jul 17 '23 09:07 ed100miles

+1

pranavacharyafdb avatar Aug 24 '23 19:08 pranavacharyafdb

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.

AntonioLuisME avatar Nov 08 '23 13:11 AntonioLuisME

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

felipeabou avatar Mar 08 '24 21:03 felipeabou

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

kmartin-bh avatar Mar 08 '24 23:03 kmartin-bh

+1 like others :)

AntShep avatar Apr 15 '24 16:04 AntShep