---
schema_version: "1"
id: a32a770525a972dc105a73b3730c72f472260c5689182e2cfc88e7546b9ce818
title: Set Self-Service User Password
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-rest/guides/resources/resources-sobject-self-service-user-password-post.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/resources-sobject-self-service-user-password-post.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ffbe5fe4efc888ea89c80aa7469c9f28a28c46502656d211af2e63c384a0dc5c
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# Set Self-Service User Password

Sets a self-service user’s password based on the specified user ID. The password provided in the request body replaces the user’s existing password. This resource is available in REST API version 24.0 and later.

You can only set one password per request. The new password must conform to the password policies for the organization, otherwise an INVALID_NEW_PASSWORD error is returned.

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/SelfServiceUser/selfServiceUserId/password`

**Formats:** JSON, XML

**HTTP Method:** POST

**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](https://developer.salesforce.com/docs/platform/api-rest/do-me/dome-sobject-user-password.md).

**See Also**  


-   [Object Reference for the Salesforce Platform](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/)

