I'm trying to update password of a user without a recovery method (forced password update as admin). But I was not able to find an API for password update without recovery method.
I found an API in https://is.docs.wso2.com/en/6.1.0/apis/use-the-account-recovery-rest-apis/#/Password%20Recovery/post_set_password. But it requires a key from recovery. Can I update password without recovery key? Is there any alternative for this API?
You can use scim2 REST API Users Endpoint[1] with PUT request[2] or PATCH request[3] to update user's password via admin.
Following is a sample curl command to update user's password using patch request.
[1]https://is.docs.wso2.com/en/latest/apis/scim2-rest-apis/#/Users%20Endpoint [2]https://is.docs.wso2.com/en/latest/apis/scim2-rest-apis/#/Users%20Endpoint/updateUser [3]https://is.docs.wso2.com/en/latest/apis/scim2-rest-apis/#/Users%20Endpoint/patchUser