Skip to main content

Reset Passwords Using Dev Console

1. Open Developer Console

2. Click the Debug dropdown menu and select the Open Execute Anonymous Window

3. Enter the following to manually set a new password for a user:

User usr = [select Id from User where username='ENTER_USERNAME_HERE'];
System.setPassword(usr.Id,'ENTER_NEW_PASSWORD_HERE');