<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: How to reset user password using RestAPI in Salesforce? (Thread)</title><description> I have Salesforce admin credentials and a password reset query. I want to reset the user password using Rest API. How to reset a user password using RestAPI in the Salesforce application? What is the password reset endpoint?   User Usr1 = [Select Id from User where username=
             'user1'];
System.setPassword(usr1.Id,'Test123');     </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/2719.aspx</link><item><guid isPermaLink="false">threadId=2719</guid><author>Pankaj Sharma (pankajnagla084@gmail.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">salesforce </category><title>How to reset user password using RestAPI in Salesforce?</title><description> I have Salesforce admin credentials and a password reset query. I want to reset the user password using Rest API. How to reset a user password using RestAPI in the Salesforce application? What is the password reset endpoint?   User Usr1 = [Select Id from User where username=
             'user1'];
System.setPassword(usr1.Id,'Test123');     </description><pubDate>Mon, 05 Dec 2022 17:08:54 -0500</pubDate><a10:updated>2022-12-05T17:21:00-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2719.aspx</link></item><item><guid isPermaLink="false">messageId=5819</guid><author>Raj Sharma (pankajnagla3@gmail.com)</author><title> Users are treated as an sObject, so its the data api, so you access it at   https:// .salesforce.co</title><description> Users are treated as an sObject, so its the data api, so you access it at   https:// .salesforce.com/services/data/v25.0/sobjects/User/    and the password is at  https:// .salesforce.com/services/data/v25.0/sobjects/User/ /password   https:// .salesforce.com/services/data/v25.0/sobjects/User/ /password   To change a password using Curl Create a file with contents like these (it must be valid json), and save it somewhere.     {   

"NewPassword" : "myNewPassword1234"

}   then post to the service using a curl command like (fill in yourInstance, UserId, yourOAuthToken, and yourPasswdFile):   curl https:// .salesforce.com/services/data/v25.0/sobjects/User/ /password -H "Authorization: Bearer  " —H "Content-Type: application/json" —d @ .json —X POST   Theres more information and sample curl commands at  https://developer.salesforce.com/docs/atlas.en-  us.api_rest.meta/api_rest/dome_sobject_user_password.htm#!  I hope you got a lot of information in this answer. but still wanted to gain more information regarding this question then check out this link salesforce administrator training. This Training is for Beginners, Intermediate, and advanced Salesforce users to enhance their knowledge and understanding of the Salesforce CRM platform. </description><pubDate>Mon, 05 Dec 2022 17:21:00 -0500</pubDate><a10:updated>2022-12-05T18:01:57-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2719.aspx#reply5819</link></item></channel></rss>