New

Experience Smart HR with Horilla Mobile App

Google Play Store Google Play Store
Home / Blogs

How to Strengthen Salesforce Security with Smart Password Policies

CRM
·

October 3, 2025

how-to-strengthen-salesforce-security-with-smart-password-policies

Protecting user accounts is one of the first steps in maintaining a secure Salesforce environment. Salesforce provides a set of configurable password policies that help organizations enforce strong authentication standards. These policies not only reduce the risk of unauthorized access but also ensure compliance with internal and regulatory security requirements. In this blog, we’ll break down the available password policy settings in Salesforce, why they matter, and how to apply best practices when configuring them. Why Are Password Policies Important.

Thank you for reading this post, don't forget to subscribe!

Password policies help organizations protect sensitive business and customer data, prevent unauthorized access and security breaches, and comply with security and regulatory standards.

Salesforce provides robust options to enforce password security, ensuring that only authorized users can access the system. Let’s dive into the key password policy settings available in Salesforce.

How to Access Password Policies in Salesforce

To configure password policies in Salesforce, follow these steps:

  1. Log in to Salesforce with an administrator account.
  2. Click on the Setup icon (gear icon) in the top-right corner.
  3. In the Quick Find search bar, type Password Policies.
  4. Click on Password Policies under Security Settings.
  5. Adjust the password policies based on your organization’s security requirements.
  6. Click Save to apply the changes.

By navigating to Setup → Security → Password Policies, administrators can enforce secure authentication practices, ensuring compliance with security policies.

Key Password Policy Settings in Salesforce

  1. Password Expiration

This setting determines how frequently users must update their passwords.

  • Example : User passwords expire in 90 days
  • Purpose : Forces users to update their passwords periodically, reducing the risk of compromised credentials being used indefinitely.
  • Best Practice : Set expiration between 60 and 90 days for optimal security.
  1. Enforce Password History

This setting controls how many previous passwords a user must avoid reusing.

  • Example : Remember three previous passwords
  • Purpose : Prevents users from reusing old passwords, ensuring they create new and secure ones.
  • Best Practice : Remember at least five previous passwords to prevent cycling between a few weak ones.
  1. Minimum Password Length

This setting defines the minimum number of characters required in a password.

  • Example : Minimum password length is eight characters
  • Purpose : Ensures passwords are not too short, making them harder to guess.
  • Best Practice : Increase to at least 12 characters for stronger security.
  1. Password Complexity Requirement

This setting enforces specific requirements for password composition.

  • Example : Must include both alphabetic and numeric characters
  • Purpose : Ensures passwords are strong by requiring a mix of different character types.
  • Best Practice : Require uppercase letters, lowercase letters, numbers, and special characters to create strong passwords.
  1. Password Question Requirement

This setting controls the rules for security questions used during password recovery.

  • Example : Cannot contain password
  • Purpose : Prevents users from including their password in security questions, reducing the risk of easy recovery by attackers.
  • Best Practice : Use security questions with answers that are difficult to guess.
  1. Maximum Invalid Login Attempts

This setting limits the number of times a user can enter an incorrect password before being locked out.

  • Example : Maximum invalid login attempts is ten
  • Purpose : Limits brute-force attacks by locking out users after multiple failed login attempts.
  • Best Practice : Set to between five and seven attempts for better protection against unauthorized access.
  1. Lockout Effective Period

This setting determines how long a user remains locked out after exceeding the maximum invalid login attempts.

  • Example : Lockout effective period is 15 minutes
  • Purpose : Prevents repeated login attempts by temporarily restricting access.
  • Best Practice : Increase to 30 minutes or require administrator intervention for high-security environments.
  1. Obscure Secret Answer for Password Resets

This setting determines whether the answers to security questions are hidden when users reset their passwords.

  • Example : Disabled
  • Purpose : If enabled, hides the security question answer to prevent unauthorized resets.
  • Best Practice : Enable this setting for better security.
  1. Require a Minimum One-Day Password Lifetime

This setting prevents users from changing their password multiple times within a day.

  • Example : Disabled
  • Purpose : Stops users from bypassing password history rules by cycling through passwords quickly.
  • Best Practice : Enable this setting to prevent quick password cycling.
  1. Allow Use of Set Password API for Self-Resets

This setting allows programmatic password resets through the Salesforce API.

  • Example : Enabled
  • Purpose : Allows users to reset their passwords using automated processes if needed.
  • Best Practice : Only allow this if using a secure password reset process.
  1. Forgot Password and Locked Account Assistance

Salesforce allows customization of forgotten password and locked account messages, guiding users on how to regain access securely.

  • Best practices include: Adding a custom help link for self-service password resets
    Displaying a clear support contact message for locked accounts
  1. Alternative Home Page:
  • API-only users are directed to this specified URL after confirming a user management action, such as a password reset.

Expire All Passwords

Salesforce allows administrators to force all users to reset their passwords immediately.

To do this:

  1. Navigate to Setup.
  2. In the Quick Find search bar, type Expire All Passwords.
  3. Select Expire All Passwords.
  4. Enable the option and Save.

The next time users log in, they will be required to set a new password. This option should be used carefully and in accordance with security policies.

Conclusion

Implementing strong password policies in Salesforce is crucial for maintaining security and preventing unauthorized access. By configuring the appropriate settings and following best practices, organizations can protect sensitive data and ensure compliance with security regulations. Administrators should regularly review and update password policies to align with evolving security standards and emerging threats. By doing so, businesses can create a more secure Salesforce environment for their users.

Horilla CRM Editorial Team Author

Horilla CRM Editorial Team is a group of experienced CRM practitioners, revenue operations specialists, and SaaS product analysts who are passionate about CRM software. We have a deep, practical understanding of the customer relationship landscape — from pipeline management and lead nurturing to sales automation and customer retention — and are committed to providing our readers with the most up-to-date and actionable content. We have written extensively on a variety of CRM software topics, including sales pipeline tools, contact management systems, marketing automation platforms, and customer success software. Our reviews and guides are grounded in real-world usage across SMB and enterprise environments. We are always looking for new ways to share our knowledge with the sales and RevOps community. If you have a question about our CRM software, please don't hesitate to contact us.