Hey, we need the possibility to find a user based ...
# ory-network
l
Hey, we need the possibility to find a user based on the email so that we can delete him - i can't find an api endpoint for it - how can we proceed? Searching a user based on traits should be a basic feature 😮
h
Hey Marc, this is on our roadmap! How many users do you have in your project right now?
l
I need to import users using an email and a password, if necessary the import should be able to be executed again. Since the password may have changed and I only have the email for reference, the existing user must be deleted first. It's about almost 300.000 users.
f
Did you not store the Ory identity id in your system when you imported them in?
l
They have not yet been imported. The other system is a database dump...
h
Hm, not 100% sure if I follow - so you want to import 300.000 users and handle duplicates?
f
We currently just go through the list of all existing identities as a workaround: https://www.ory.sh/docs/reference/api#tag/identity/operation/listIdentities But we have much fewer users. At 300'000 users it might be worth maintaining your own index, until it is natively supported by ory
h
I think there are a couple of workarounds we could do to solve your use case today. We do have matching the identifier (so e.g. username or email used for login) on the near roadmap, because it’s a basic feature we need to have. More detailed identity search is a much bigger task because it needs a serious search engine that is properly configured (e.g. lucene, elastic, …)