Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Reset User Password

Initiates a password reset for a user based on the specified user ID. The user’s current password becomes invalid and the user receives an email with a password reset link. To log in again, the user must finish resetting their password. This resource is available in REST API version 24.0 and later.

Salesforce auto-generates a temporary password for the user and returns it in the response body. If the user can’t access the email link, they can finish resetting their password by logging in with the temporary password.

If the session doesn’t have permission to access the user information, an INSUFFICIENT_ACCESS error is returned.

Syntax

URI: /services/data/vXX.X/sobjects/User/userId/password

Formats: JSON, XML

HTTP Method: DELETE

Authentication: Authorization: Bearer token

Parameters: None required

Example

For examples of getting password information, setting a password, and resetting a password, see Manage User Passwords.