Password is important for authenticating users. Users usually forget password or try multiple wrong passwords and many more reasons where system locks their credentials and restrict further access. A system admin can reset the password in many ways. In this blog we will see different ways through which you can reset the password.
As per my knowledge there are 3 ways you can reset password of a user in salesforce.
- User Detail page.
- Reset multiple users password at once.
- Developer Console
- Workbench
Reset password from User detail page.
- Login into salesforce org
- Go to Setup – Type Users in quick search – Select ‘Users’ submenu.
- Select the user whose password must be reset.
- Click on ‘Reset Password’ Button.

Once Rest Password button is clicked, user will receive an email from salesforce with a link to reset password.
Reset password of multiple Users.
- Login into salesforce org
- Go to Setup – Type Users in quick search – Select ‘Users’ submenu.
- Select checkbox against all users whose password is to be reset.
- Click on Reset Password(s) button.

Set password from developer console.
- Login into salesforce org
- Go to Developer Console.
- In Developer Console, Click Debug – Open Execute Anonymous Window.
In Anonymous window you can use the following code to reset password.
/*
* SYNTAX
* system.setPassword('<User_ID>', 'Actual_Password_To_Be_Set');
*/
system.setPassword('005xx0000000XXX', 'New_Password_123');
Set/Reset password from workbench.
- Go to Workbench login page.
- Login into workbench using salesforce credentials to respective org (Sandbox or Production).
- Once logged in. Click on Utilities – Password Management.

- You can with set a password or reset password based on your preference.
- When you Select Set as option. You must enter user id, Password and Confirm Password fields.

Here user whose password is set; can login use the new password.
- When you select Reset as option. You can just enter the user id and click on Change Password.

User will receive email from salesforce with a link to reset password.
Note:
- If you have the “User Single Sign-On” permission, only an administrator can reset your password.
- Above mentioned methods are for system admin. User can choose Forgot Password link also to reset the password.
- Link that is sent from salesforce via email is valid for 24 hours only.
Resource
Salesforce – Change Your Password
Salesforce – Use the Developer Console to force password resets
One thought on “Different ways to Reset Password in Salesforce”