Hey folks, I'm trying to migrate users from one Or...
# ory-network
f
Hey folks, I'm trying to migrate users from one Ory project that we have to another. Steps that I took: • I exported all users using the
GET /admin/identities
endpoint included with the hashed passwords. • Using
jq
, I restructured the response from the above to follow the request payload of the
PATCH /admin/identities
endpoint as it was complaining of some invalid field types. • Then I tried creating the users with
curl --request PATCH -sL --header "Authorization: Bearer <ORY_PAT>" --header "Content-Type: application/json" --data @output.json https://<PROJECT_URL>/admin/identities
but I'm getting
The imported password does not match any known hash format.
s
I tried to reproduce this but it worked without a problem. Can you provide more details on what you tried? All you need to do is copy the traits and metadata fields, and then for the password reuse the same hashed password string that you got.
Can you maybe send the hash that is failing, ideally for some test account
f
Sorry for the bit late reply but it turned out I was missing
"use_password_migration_hook": true
under
credentials.password.config
It worked after adding it.