Configure complexity requirements for passwords in Azure Active Directory B2C
Azure Active Directory B2C (Azure AD B2C) supports changing the complexity requirements for passwords supplied by an end user when creating an account. By default, Azure AD B2C uses
Strong passwords. Azure AD B2C also supports configuration options to control the complexity of passwords that customers can use.
Password rule enforcement
During sign-up or password reset, an end user must supply a password that meets the complexity rules. Password complexity rules are enforced per user flow. It is possible to have one user flow require a four-digit pin during sign-up while another user flow requires an eight character string during sign-up. For example, you may use a user flow with different password complexity for adults than for children.
Password complexity is never enforced during sign-in. Users are never prompted during sign-in to change their password because it doesn't meet the current complexity requirement.
Password complexity can be configured in the following types of user flows:
- Sign-up or Sign-in user flow
- Password Reset user flow
If you are using custom policies, you can (configure password complexity in a custom policy).
Configure password complexity
- Sign in to the Azure portal.
- Select the Directory + Subscription icon in the portal toolbar, and then select the directory that contains your Azure AD B2C tenant.
- In the Azure portal, search for and select Azure AD B2C.
- Select User flows.
- Select a user flow, and click Properties.
- Under Password complexity, change the password complexity for this user flow to Simple, Strong, or Custom.
|Simple||A password that is at least 8 to 64 characters.|
|Strong||A password that is at least 8 to 64 characters. It requires 3 out of 4 of lowercase, uppercase, numbers, or symbols.|
|Custom||This option provides the most control over password complexity rules. It allows configuring a custom length. It also allows accepting number-only passwords (pins).|
Allows you to accept digits only (pins) or the full character set.
- Numbers only allows digits only (0-9) while entering a password.
- All allows any letter, number, or symbol.
Allows you to control the length requirements of the password.
- Minimum Length must be at least 4.
- Maximum Length must be greater or equal to minimum length and at most can be 64 characters.
Allows you to control the different character types used in the password.
2 of 4: Lowercase character, Uppercase character, Number (0-9), Symbol ensures the password contains at least two character types. For example, a number and a lowercase character.
3 of 4: Lowercase character, Uppercase character, Number (0-9), Symbol ensures the password contains at least three character types. For example, a number, a lowercase character and an uppercase character.
4 of 4: Lowercase character, Uppercase character, Number (0-9), Symbol ensures the password contains all for character types.
Requiring 4 of 4 can result in end-user frustration. Some studies have shown that this requirement does not improve password entropy. See NIST Password Guidelines