Set Password Policies
Improve your Salesforce org’s security with password protection. You can set password history, length, and complexity requirements. You can also specify what to do when a user forgets the password.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Contact Manager, Essentials, Group, Professional, Enterprise, Performance, Unlimited, Developer, and Database.com Editions |
| User Permissions Needed | |
|---|---|
| To set password policies: | Manage Password Policies |
You can set different password and login policies based on the type of user. However, these policies apply to all user passwords.
- User passwords cannot exceed 16,000 bytes.
- Logins are limited to 3,600 per hour per user. This limit applies to organizations created after Summer ’08.
- A password can’t contain a user’s username and can’t match a user’s first or last name. Passwords also can’t be too simple. For example, a user can’t change their password to password.
For all editions, a new org has the following default password requirements. You can change these password policies in all editions, except for Personal Edition.
- A password must contain at least eight characters, including one alphabetic character and one number.
- The security question’s answer can’t contain the user’s password.
- When users change their password, they can’t reuse their last three passwords.
To define password policies:
- From Setup, enter Password Policies in the Quick Find box, then select Password Policies.
-
Customize the password settings.
-
Customize the forgotten password and locked account assistance information.
Note This setting is not available for Self-Service portals, the Customer Portal, or partner portals.Field Description Message If set, the message you enter appears in the We can’t reset your password email. Users receive this email when they lock themselves out by trying to reset their password too many times. The text also appears at the bottom of the Answer Your Security Question page when users reset their passwords.
You can add the name of your internal help desk or a system admin to the default text. The message appears only for accounts that need an admin to reset the password. Lockouts due to time restrictions get a different system email message.
Help link If set, this link displays along with the text defined in the Message field. In the We can’t reset your password email, the URL displays exactly as it is typed in the Help link field. This format provides extra security because the user isn’t within a Salesforce org but can still see where the link goes.
On the Answer Your Security Question page, the Help link URL combines with the text in the Message field and forms a clickable link. Security isn’t an issue because the user is in a Salesforce org when changing passwords.
Valid protocols are:
- http
- https
- mailto
- Specify an alternative home page for users with the API Only User permission. After completing user management tasks such as resetting a password, API-only users are redirected to the specified URL rather than to the login page.
- Click Save.

