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.
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.

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.

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”.

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.

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.

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“.

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.

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”.

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.

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.

5. After editing the password policies, click on the Save button.
Set Expire Password Policies at Profile Level in Salesforce Classic
- Go to Setup -> in Quick Find Box -> Search “Profile” -> Click on “Profile“.

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.

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.

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:
- How to View and Edit Password Policies of Profiles in Salesforce
- How to Insert File with Dataloader in Salesforce
- How to Import Users Using Data Loader In Salesforce
- How to Reset a User Password in Salesforce
- How to install and use Salesforce Inspector?
- Lock and Unlock User Accounts in Salesforce
- How to Filter Report By Current User in Salesforce
I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us.