| Webtraffic Exchange | Salesforce

Change Salesforce Password

As Salesforce dominates the CRM market space, it has grown to support many industries and unique business requirements. Becoming an ecosystem that is so big to encompass every industry and companies of all sizes, the administration of Salesforce became very complex. The following list of Salesforce administrative guides will help admins perform their daily duties and be used as a reference for their administrative tasks.

Staff within an organization come and go, and as an admin, you may have to reset a user's password for a number of reasons. Resetting a password within Salesforce will trigger an email to the user's inbox, and the user will click on the link to reset their password. More often than not, an admin may need to reset a user's password without triggering an email or user's acknowledgment. This is how you do it.

a. Log in to Salesforce as an administrator.

b. Click your name -> Developer Console to launch a console window where you can run SOQL and Apex Codes.

Setup Menu

c. Click Debug -> Open Execute Anonymous Window.

Developer Console Menu

d. On the developer console window (Enter Apex Code), type the following command.

Change Password Command

User u = [SELECT Id FROM User WHERE username = '[email protected]'];
System.setPassword(u.Id, 'New Password');

e. Click the Execute button.

Upon successful execution of the above Apex command, the user's Salesforce password will be changed to 'New Password'.

Share this Post: Facebook X LinkedIn Email


0 Comments

Comments are moderated to keep the discussion useful and respectful. Spam, automated submissions, and low-value promotional comments are removed.

  • No comments have been published yet.

Leave a Comment

Related Articles