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

 

Requirements: An Admin Account.

Steps: 

1. First of log in to your admin account.

2. Go to the Developer Console.

3. Open Execute Anonymous Window.

4. Run the code below (Replace the 'YOUR USERNAME' by your username, 'YOUR PASSWORD' by your password): 

System.setPassword([SELECT Id FROM User WHERE username='YOUR USERNAME'].id, 'YOUR PASSWORD');
 


 


Comments