Salesforce Reset User Password REST API

Salesforce Reset User Password REST API

Please do a DELETE HTTP Request to reset the password for the users using standard Salesforce REST API.

Syntax:

https://{Your Domain URL}/services/data/vXX.X/sobjects/User/{Id of the User}/password

Developer Article:

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_user_password_delete.htm

The following exception is thrown if the integration user doesn’t have “Manage Users” permission. Grant the permission via Profile or Permission Set or Permission Set Group so that the integration user can reset the password for the users via Salesforce REST API.

Exception:

[
    {
        "message": "You do not have permission to view this record.",
        "errorCode": "INSUFFICIENT_ACCESS"
    }
]

Help Article:

https://help.salesforce.com/s/articleView?id=000385064&type=1

Leave a Reply