Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

How to reset the Salesforce User password without knowing the current one!

Requirements: Admin account access.

Steps:

  • Log in: Log in to your admin account.
  • Open Developer Console: Find and open the “Developer Console”.
  • Access Execute Anonymous: Inside the Developer Console, locate and open the “Execute Anonymous Window.” You will have to run the following code:
System.setPassword([SELECT Id FROM User WHERE Username = 'YOUR USERNAME'].Id, 'YOUR PASSWORD');
  • Run Code: Replace ‘YOUR USERNAME’ and ‘YOUR PASSWORD’ in the following code based on your username and password preference.
  • Execute Code: Click “Execute” to run the code, changing the user’s password.
  • Confirmation: Verify the code executed successfully and confirm the user’s new password.

That’s it! You’ve now changed the user’s password using the Salesforce Developer Console as an admin.

Share your love

Leave a Reply

Your email address will not be published. Required fields are marked *