SetUserPassword
Sets a user's password as an admin, if the option is enabled in the account. Admins and agents can also use this stored procedure to change their own password.
Stored Procedure-Specific Information
Zendesk allows only a small subset of columns to be used in the EXEC query. These columns can typically only be used with the = comparison. This operation is allowed for logged-in users with the "admin" role only.
For example:
EXECUTE SetUserPassword UserId = '10478872117020', NewPassword = 'abcd@123'
Input
| Name | Type | Required | Description |
| UserId | Long | True | The Id of the user whose password is being set. |
| NewPassword | String | True | The new password to set for the user. |
Result Set Columns
| Name | Type | Description |
| Success | String | Returns true if the password is set successfully. |