Problems With User Password Reset

Hi,

I am trying to reset the user password by sending the following POST from Kibana UI Developer Console but I keep running into this error

Here is my POST

POST _security/user/username/_password 
{
"password": "newpasswordtoupdate"
}

Here is the ERROR

{
  "error": "no handler found for uri [/_security/user/username/_password?pretty] and method [POST]"
}

The URI path is the same that elasticsearch has in its official documentation
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html

Is there a different URI path for Password reset for Opendistro because the error shows a different handler could be the problem here?

Thanks

Hi @rkredux,

From the Kibana UI console, the correct API to update path would be

PUT /_opendistro/_security/api/internalusers/<username>
{
  "password": "somepassword"
} 

For eg:

PUT /_opendistro/_security/api/internalusers/sujith
{
  "password": "new_password"
}

Please let me know if that works for you.

Thanks

Thank you for your response @svadakke . We do not allow our tenants to do PUT operations to the security endpoint and were hoping that they will be able to reset their password from the dev console themselves. Is there a workaround to that?