---
title: "PasswordTestsSetting"
description: "This setting enables a check on the passwords set manually by users."
sidebar_position: 8
---

This setting enables a check on the passwords set manually by users.

:::info
The strength of passwords generated by Identity Manager can be configured via [`PasswordResetSettings`](../../connectors/passwordresetsettings.md)'s `StrengthCheck`.
:::


## Examples
The following example encourages users to choose a strong password with at least 9 characters including at least one digit, one lowercase letter, one uppercase and one special character.

```xml
<PasswordTestsSetting PasswordRegex="'^..........*$','^.*[0-9].*$', '^.*[a-z].*$', '^.*[A-Z].*$', '^.*[^A-Za-z0-9].*$'"/>
```


## Properties

|Property|Details|
|---|---|
| Identifier <span class="optionalAttribute">default value: PasswordTests</span> | **Type:** String **Description:** Unique identifier of the setting. |
| PasswordRegex optional | **Type:** String **Description:** Regular expressions (regex) that users' passwords must match to be acceptable when set manually. When setting several regex, passwords must match all of them to be considered strong, and 70% to be considered average. Below that, a password is considered weak and can't be confirmed.**Default value:** `'^..*$', '^...*$', '^....*$', '^.....*$', '^......*$', '^.......*$', '^........*$', '^.........*$', '^..........*$', '^.*[0-9].*$', '^.*[a-z].*$', '^.*[A-Z].*$', '^.*[^A-Za-z0-9].*$'` |

