---
schema_version: "1"
id: 8b93de95887e91874354970b2da3c78b2939dd80a6dbcf6f59e0fd2a91ccba78
title: Password Policy Fields in Profiles
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/users_profiles_password_policies_ref.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.users_profiles_password_policies_ref.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cbc19d3e20c2b50eec30f827ab01fb993b24738b8fa5030e985bed13cdeaa9c3
description: Specify password requirements with Password Policies settings. Understand how each field impacts a profile’s password requirements.
products:
  - Security
  - Salesforce Platform
release: "264"
---
# Password Policy Fields in Profiles

Specify password requirements with Password Policies settings. Understand how each field impacts a profile’s password requirements.

Changes to org-wide password policies don’t apply to users of a profile that has its own password policies.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d38318e44">Field</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d38318e47">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">User passwords expire in</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">
              <p>The length of time until a user password expires and must be changed. The
                default is 90 days. This setting isn’t available for Self-Service portals. Enabling
                the Password never expires policy overrides the User passwords expire in
                policy.</p>
              <p style="margin-bottom:0;">You can change this setting to an expiration date that is earlier or
                later than the previous expiration date. To remove an expiration date, select
                <strong class="uicontrol">Never expires</strong>.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">Enforce password history</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">Save users’ previous passwords so that they must use a new, unique
              password when changing passwords. Password history isn’t saved until you set this
              value. The default is <samp class="parmname">3 passwords remembered</samp>. You can’t select
              <samp class="parmname">No passwords remembered</samp> unless you select <samp class="parmname">Never
                expires</samp> for the <samp class="parmname">User passwords expire in</samp> field.
              This setting isn’t available for Self-Service portals.
            </td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">Minimum password length</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">The minimum number of characters required for a password. When you set this
              value, existing users aren’t affected until the next time they change their
              passwords. The default is <samp class="parmname">8 characters</samp>.</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">Password complexity requirement</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">
              <p>The types of characters that must be used in a user’s password. </p>
              <ul>
                <li><samp class="parmname">No restriction</samp>—<span id="users_profiles_password_policies_ref__no_restriction_defin"><a name="users_profiles_password_policies_ref__no_restriction_defin"><!-- --></a>Has
                    no requirements and is the least secure option</span>.</li>
                <li><samp class="parmname">Must include alpha and numeric characters</samp>—<span id="users_profiles_password_policies_ref__alpha_numeric_defin"><a name="users_profiles_password_policies_ref__alpha_numeric_defin"><!-- --></a>The default setting. Requires at least one alphabetic
                    character and one number</span>.</li>
                <li><samp class="parmname">Must include alpha, numeric, and special
                    characters</samp>—<span id="users_profiles_password_policies_ref__special_characters_defin"><a name="users_profiles_password_policies_ref__special_characters_defin"><!-- --></a>Requires at
                    least one alphabetic character, one number, and one of the following
                    characters: <kbd>! " # $ % &amp; ' ( ) * + , - . / : ; &lt; = &gt; ? @ [ \
                      ] ^ _ ` { | } ~</kbd></span>.</li>
                <li><samp class="parmname">Must include numbers and uppercase and lowercase
                    letters</samp>—<span id="users_profiles_password_policies_ref__special_chars_2"><a name="users_profiles_password_policies_ref__special_chars_2"><!-- --></a>Requires at least one
                    number, one uppercase letter, and one lowercase letter</span>.</li>
                <li><samp class="parmname">Must include numbers, uppercase and lowercase letters, and special
                    characters</samp>—<span id="users_profiles_password_policies_ref__special_chars_3"><a name="users_profiles_password_policies_ref__special_chars_3"><!-- --></a>Requires at least one
                    number, one uppercase letter, one lowercase letter, and one of the following
                    characters: <kbd>! " # $ % &amp; ' ( ) * + , - . / : ; &lt; = &gt; ? @ [ \
                      ] ^ _ ` { | } ~</kbd></span>.</li>
                <li><samp class="parmname">Must include 3 of the following: numbers, uppercase letters,
                    lowercase letters, special characters</samp>—<span id="users_profiles_password_policies_ref__special_chars_4"><a name="users_profiles_password_policies_ref__special_chars_4"><!-- --></a>Requires at least three of the following options: one
                    number, one uppercase letter, one lowercase letter, and one special character
                    (<kbd>! " # $ % &amp; ' ( ) * + , - . / : ; &lt; = &gt; ? @ [ \ ] ^ _ ` {
                      | } ~</kbd>).</span></li>
              </ul>
              <p style="margin-bottom:0;">Only the characters listed meet the requirement. Other symbol characters
                aren’t considered special characters.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">Password question requirement</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">The restrictions to place on the password hint’s answer. This setting isn’t
              available for Self-Service portals.</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">Maximum invalid login attempts</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">The number of login failures allowed for a user before the user is locked out.
              This setting isn’t available for Self-Service portals.</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">Lockout effective period</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">
              <p>The duration of the login lockout. The default is 15 minutes. This setting
                isn’t available for Self-Service portals.</p>
              <p>When a user is logged in to an active
                session but is later locked out, the user remains logged in to the active
                session.</p>
              <p style="margin-bottom:0;">A locked-out user must wait until the lockout period expires.
                Alternatively, a user with the Reset User Passwords and Unlock Users permission
                can unlock a user from the Users detail page in Setup.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">Obscure secret answer for password resets</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">
              <p>Hide answers to security questions as the user types. The default is to show
                the answer in plain text.</p>
              <p style="margin-bottom:0;">If your org uses the Microsoft Input Method Editor (IME)
                with the input mode set to Hiragana, when you type ASCII characters, they’re
                converted in to Japanese characters in normal text fields. However, the IME
                doesn’t work properly in fields with obscured text. If your org’s users can’t
                properly enter their passwords or other values after enabling this feature,
                disable the feature.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">Require a minimum 1 day password lifetime</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">A password can’t be changed more than once in a 24-hour period. This policy
              applies to all password changes, including password resets by Salesforce
              admins.</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e44 ">
              <samp class="parmname">Don’t immediately expire links in forgot password
                emails</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d38318e47 ">
              <p>When you select this option, a password reset link in a forgot password email
                doesn’t expire the first time it’s clicked. Instead, the link stays active until the
                user confirms the password reset request on an interstitial page.</p>
              <p style="margin-bottom:0;">A user has 24
                hours to reset a password. After 24 hours, the user must submit another
                request.</p>
            </td>

          </tr>
        </tbody>
      </table>

#### See Also

- [View and Edit Password Policies in Profiles](https://help.salesforce.com/s/articleView?id=platform.users_profiles_password_policies.htm&release=264.0.0&type=5 "To ensure that the appropriate level of password security is used for your organization, specify password requirements with Password Policies settings for users assigned to a profile. Profile Password Policies settings override the organization-wide Password Policies for that profile’s users. If you don’t set Password Policies on a profile, the organization-wide Password Policies apply. New profile Password Policies take effect for existing profile users when they reset their passwords.")