-
|
Hi Ory team! Thank you for this fantastic product. I was looking for a way to reset the identity passwords via the admin endpoints. The documentation says that it is not possible to change the credentials using a PATCH operation. However, I was able to reset the password in a local deployment using the following call: curl --location --request PATCH 'http://127.0.0.1:4434/admin/identities/566668ef-b52d-47d4-9ef8-efa0508538dd' \
--header 'Content-Type: application/json' \
-d '[ { "op": "replace", "path": "/credentials/password/config/hashed_password", "value": "random-value" } ]'The result was setting I'm wondering whether this is intended behavior or not, because if not, relying on it could cause trouble in the future. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Hey, if this API call should be able to edit the user credential is something the Ory team has to answer. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I think the more solid way to do it is to do getIdentity, make the change on the full identity, and then use the intended endpoint for credentials change updateIdentity to delete/scramble the password. Im sure you considered it but don't use
It sounds to me like a valid use case - Is this something you currently do a lot in your system or just planning for the future? |
Beta Was this translation helpful? Give feedback.

Where do you see the contradiction?
Maybe it can be reworded to be more clear/less confusing.
As far as I can tell
password,oidc, andsamlare supported for updating.To update a password, include the credentials.password.config.password field in your request body. For example: