Expire Password For Users in Salesforce

The Administrator and the user who has permission set can expire passwords for all users whenever he wants; this feature provides security to an organization.

In this tutorial, we will discuss How to Expire passwords for users in Salesforce. Additionally, we will see how to enable this feature in Salesforce Lightning and Salesforce Classic.

Manage Password Expiration with Password Policies for Users in Salesforce

What is an expired password for a user in Salesforce?

In Salesforce, password policies mostly ensure the security of an organization. This feature enforces to a user that they need to reset their password the next time when they log in.

There are three ways to set expiration password policies

  • Expire all Passwords – When we select this option all users in the Org. when they log in next time need to reset their password.
  • Organization Level – At the Org level, when we set expiration password policies it will apply to all users who are active in the Org.
  • Profile Level – At the profile level, when we set this policy it will apply only to users who have the particular profile which we have selected.
  • Note – If we have set both level’s expiration password policies then remember that the profile level policy always overrides the Org level expiration password policies.
  • If we don’t set profile-level password policies, then Organization level policies will apply.
See also  How to Add Contacts to Campaign in Salesforce

How to Set Expire Password for All Users in Salesforce Lightning

Using the following steps, we can force all users to reset their passwords.

1. Go to Setup -> Quick Find Box -> search “Expire all Passwords” -> click on Expire all Passwords.

Expire All Passwords in Salesforce

2. Click on Expire All Passwords and then click on the Save button.

After this, all user in the Org need to reset their password at the time of the next log-in.

Expire All Passwords in Salesforce Lightning

How to Set Expire Password Policies at Organization Level in Salesforce Lightning

Using the following steps, we can set expiration password policies at the Org level.

1. On the home page, click on the “Gear icon”, then select “Setup” from the dropdown.

2. On the setup page, “Quick Find Box” -> Search ” Password Policies” -> click on Password Policies.

Set Password Policies in Salesforce

3. You will see the “User Password expire in” field.

  • Here, I have selected 90 days. This means after 90 days, for all users in the Org, the password will expire, and they need to reset their password.
  • Never expires – If you select this option, then the password never expires, and you don’t need to change the password.

4. After Selecting, click on the save button.

How to Set Expire Password For All Users in Salesforce Classic

1. Go to Setup -> Quick Find Box -> Search “Expire all Passwords” -> Click on Expire all Passwords.

Expire All Passwords in Salesforce Classic

2. Click on Expire All Passwords and then click on the Save button.

See also  How to enable notes in Salesforce

After this, all user in the Org need to reset their password at the time of the next log-in.

Expire All User Passwords in Salesforce Classic

Set Expire Password Policies at Organization Level in Salesforce Classic

Using the following steps we can set expire password policies for Org level.

1. Go to the “Setup” button on the right side on top of the corner.

2. In the Quick Find Box -> Search “Password Policies” -> click on “Password Policies“.

Set Password Policies in Salesforce Classic

2. Then you can see “User password expire in“. Here I have selected 30 days, which means after 30 days the password will expire and the user needs to reset their password.

Never expires – If you select this option, then the password never expires, and you don’t need to change the password.

Expire Password for User in Salesforce Classic

3. Then click on the Save button.

Set Expire Password Policies at Profile Level in Salesforce Lightning

Now, we will see, using the following steps, how we can set expiration password policies at the Profile Level.

1. On the home page, Click on the “Gear icon”, then select “Setup” from the dropdown.

2. On the setup page, “Quick Find Box” -> Search ”Profile” -> Click on Profile.

Set Profile Level Password Policies in Salesforce

3. Select on which profile you want to set Expire password policies. Here I have selected the Manager profile. That means only users who have a manager profile only they need to reset their password.

Set Expire Password Policies in Salesforce Lightning

4. Select the “User password expire in“. Here I have selected “One year“, which means this password is valid for one year after one year it will automatically expire and the user needs to reset his password.

See also  How to Send Outbound Message using Workflow in Salesforce

5. After editing the password policies, click on the Save button.

Set Expire Password Policies at Profile Level in Salesforce Classic

  1. Go to Setup -> in Quick Find Box -> Search “Profile” -> Click on “Profile“.
Profile Level Password Policies in Salesforce Classic

2. Select on which profile you want to set Expire password policies. Here I have selected the Employee profile. That means only users who have an Employee profile only they need to reset their password.

Set Expire Password Policies in Salesforce Classic

3. In the “User password expire in” field, select duration. Here I have selected “90 days“, which means this password is valid for 90 days after 90 days it will automatically expire and the user needs to reset his password.

Set Profile Level Expire Password Policies in Salesforce Classic

4. After setting up password policies, click on the Save button.

This is how you can set the Organization level and Profile level Expire password policies in Salesforce.

Conclusion

In this article, we have learned about what an expired password is for users, how to expire a password for all users, why we need to set expire password policies, and how to set User password expire at the organization level and profile level in Salesforce Lightning and Salesforce Classic.

You may like to read: