"Self changing of passwords is not enabled on this connection" Error When Calling /dbconnections/change_password Endpoint
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
-
Database Connection
-
Change Password Endpoint
This error occurs because the disable_self_service_change_password flag is set to true in the database connection settings.
-
Call the GET /v2/connections/{id} endpoint to retrieve the current connection configuration. The
optionsobject 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 fulloptionsobject from the previous step and set thedisable_self_service_change_passwordflag tofalse.{ "options": { // Include all other options attributes from step 1 "disable_self_service_change_password": false } } -
Call the
/dbconnections/change_passwordendpoint again to verify the change was successful.