Salesforce Admin

Different ways to Reset Password in Salesforce

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.

  1. User Detail page.
  2. Reset multiple users password at once.
  3. Developer Console
  4. Workbench

Reset password from User detail page.

  1. Login into salesforce org
  2. Go to Setup – Type Users in quick search – Select ‘Users’ submenu.
  3. Select the user whose password must be reset.
  4. Click on ‘Reset Password’ Button.
A screenshot of a social media post

Description automatically generated
User detail page.

Once Rest Password button is clicked, user will receive an email from salesforce with a link to reset password.


Reset password of multiple Users.

  1. Login into salesforce org
  2. Go to Setup – Type Users in quick search – Select ‘Users’ submenu.
  3. Select checkbox against all users whose password is to be reset.
  4. Click on Reset Password(s) button.
A screenshot of a social media post

Description automatically generated
List of users page.

Set password from developer console.

  1. Login into salesforce org
  2. Go to Developer Console.
  3. 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.

  1. Go to Workbench login page.
  2. Login into workbench using salesforce credentials to respective org (Sandbox or Production).
  3. Once logged in. Click on Utilities – Password Management.
A screenshot of a social media post

Description automatically generated
Workbench – 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.
A screenshot of a cell phone

Description automatically generated
Set new password for the user

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.
A screenshot of a social media post

Description automatically generated
Reset password for user.

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s