<@U04UQ68083H> 1. Can an Admin manually reset a us...
# ory-copilot
m
@chilly-king-10285 1. Can an Admin manually reset a users password? 2. Can they (the admin) create a custom password for this user?
c
A message from kapa.ai
New message text here
m
These links here: 1. https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset 2. https://www.ory.sh/docs/kratos/manage-identities/account-recovery I believe this is where this answer would be, but I do not seem to be able to find it upon searching the docs either.
m
For reference you can use this endpoint to update an identity https://www.ory.sh/docs/reference/api#tag/identity/operation/updateIdentity also you can add credentials when importing/creating an identity https://www.ory.sh/docs/reference/api#tag/identity/operation/createIdentity and yea for resetting the password through recovery (i.e. letting the user choose a new password) you posted the right links
c
A message from kapa.ai
Hmm, I don't know enough to give you a confident answer yet. The provided extracts do not contain specific information about an admin's ability to manually reset a user's password or create a custom password for a user in Ory. However, Ory does provide administrative identity management to get, create, update, and delete identities (users) and their data. For more detailed information, you may want to refer to the [Ory documentation](https://www.ory.sh/docs).
m
Thanks @magnificent-energy-493, that still doesn't fully answer the questions (or apologies if I'm misunderstanding): 1. Can an Admin manually reset a users password? See screenshot. When looking at a user (who has not verified), there is no clear way on how to update info for this user. 2. Can they (the admin) create a custom password for this user? Again, there isn't any field when looking at the user to be able to make any changes. 3. NEW - if they are verified, then is 1 and 2 possible?
m
Hey @millions-king-43733 1. Yes you can do this, but currently you need to use the API that I posted above. 2. Same case, there is no GUI for this (yet), but you can add the new password to the API payload as posted above. 3. I think this should possible independent of verification
For example in cURL: (the identity.json contains the full identity including the new password)
Copy code
curl -d "@identity.json" -X PUT <https://optimistic-khayyam-3rvg5b588j.projects.oryapis.com/admin/identities/14512520-7e6d-4e27-846e-737ba8dae599> \
--header 'Authorization: Bearer ory_pat_supersecretpat' \
--header 'Content-Type: application/json'
m
Got it, ok thanks for the note!
m
Sure no worries 🙂 Generally you can do everything through the API, most of the things through the CLI as well, and some important things in the GUI. We have plans to add basically everything to the GUI, but it is an ongoing effort - we just released the revamped UI a few weeks ago
👌 1