Overview
This article explains an error that occurs when attempting to call the POST /dbconnections/change_password
endpoint to initiate a password reset.
Self changing of passwords is not enabled on this connection
Applies To
- Database Connection
- Change Password Endpoint
Cause
This error occurs because the disable_self_service_change_password
flag is set to true
in the database connection settings.
Solution
- Call the GET /v2/connections/{id} endpoint to retrieve the current connection configuration. The
options
object from this response is required for the next step. - Call the PATCH /v2/connections/{id} endpoint using the appropriate
connection_id
. In the request body, pass the fulloptions
object from the previous step and set thedisable_self_service_change_password
flag tofalse
.
{
"options": {
// Include all other options attributes from step 1
"disable_self_service_change_password": false
}
}
- Call the
/dbconnections/change_password
endpoint again to verify the change was successful.