Is there a webhook I can use to import users into ...
# general
f
Is there a webhook I can use to import users into Ory on demand? For example when a user tries to log in a web hook looks up if they exist in the legacy system and creates it in Kratos? I know about the bulk import feature, but I want to keep the legacy registration working for a while.
s
There are webhooks for login, but I don't think you could create the identity with a separate API call, and then have it be picked up by Ory. This is rather something that you would need to implement in the backend of the login UI.
f
That's what I suspected. Thanks!
d
Hey, I don't know if there is some kind of webhook but there is the create identity Admin API that able to create identity for a user: https://www.ory.sh/docs/kratos/reference/api#tag/identity/operation/createIdentity