> For the complete documentation index, see [llms.txt](https://ztrust.gitbook.io/ztrust-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ztrust.gitbook.io/ztrust-documentation/user-manual-ztrust-v1.0/admin-manual/how-to-set-up-password-invalidator.md).

# How to set up Password Invalidator

This feature invalidates the user's initial password after their first login, prompting them to create a new password. This measure ensures that only the user is aware of their password.

To set up the Password Invalidator feature, do the following steps -

1. Click on Events

![](https://lh7-us.googleusercontent.com/docsz/AD_4nXfedirn1xT5SwZA58DhoI9CB0DzBcF4qI_BLqnS9ItN3bYIIeHpSQFXORkxt2Xu-QPvoCK5WVF2yF3O_3pxWhHa1Z-PJCKc3G4Mk9YDbfaL3mOMrPHYGu9mxe2Q7KO19Dcf1jN-m6WBxkltx1HFcatf7D9kQ17SBv6SvGrhyfPcIsz_xVJQYjY?key=trHzRgGTD4ANqZgrt456QA)

2. Click on Config.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXf-_w88YKf4PTGPepFumUZMoQwE_t9IPNjtmCzHqnIYX2WkjXqwkp88uPg6GLJ1OJ206kxPUIZXkq0rX8QHcFTq_Oh6F3hp03WpFeVWfytxnMsEGf3ZV0v3PrTzLrLt67edy0Grvpa_hN3ikOZ_2xhFttif4dntlqfABYxQ_bGrqBQHXJfBSvE?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXcCRMMOfTgJ8zvkVemX9IInhgfpwMuB7kDwavn0BCncsyp2z6PRBe_tyts9quvxGAuRHGBN8jQpzHw9kG_QqxHOIlDPGT592a6kcML-4eXJ2NgITQoQV4vUI98D_BlLlsG1rvZaQ0a1E8LihyQBBeQTE2yaQ5qmN1MNc-yHdVZXSUNAdRo6CUI?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="140">Field Name</th><th width="190">Mandatory (Yes/No)</th><th width="110">Field Type</th><th>Description</th></tr></thead><tbody><tr><td>Yes</td><td>Event Listeners</td><td>Dropdown</td><td>Select the required event or action that is to be added as part of configuration</td></tr><tr><td>No</td><td>Save Events</td><td>Toggle</td><td>Keep it ON to retain a record of various events, which can be chosen and utilized as needed.</td></tr></tbody></table>

3. In the Event Listeners field, add - scheduler-listener.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXc4N33V_mpNiYWgGicCyqHpzVlJ2-E35YGIUkGXPZoM1INWl36hciHrSH1nUNN_q5fy7ZTiSTaf5ast5YF2Mz8C74ZyF0WJK2UIT2iFPGo1LNRtw98EERrOO9h9i8cglt1hJNXz4W5o7B_smjgwgotx-6hFtfzn6Iz0bxX1W696ROTpIToY51k?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

The scheduler operates on a 24-hour cycle. It checks user passwords and if any password is nearing expiration, it sends out an email reminder prompting users to update their passwords.

4. Go to Realm Settings.

![](https://lh7-us.googleusercontent.com/docsz/AD_4nXd4rxnwmD_K_SF_CqH8QPAIYIv3yKBhMt7zXfEjFBYXdQbme8z0LxOwrRYfxZtimml8HNT1XoXqUb0M2ud8lXNtubLAVG0oVAwz3U-XHqYgOv5faCLjEJe3ejTmgRv0pkGpqyVtXLr5J5gSBPMj08Y7UhfM-ogTOVxx3K7V0S4Q6beCds24YS0?key=trHzRgGTD4ANqZgrt456QA)

5. Go to Localization.

<figure><img src="/files/HW23YaRskApHtn2j5HMs" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="184">Field Name</th><th width="144">Field Type</th><th>Description</th></tr></thead><tbody><tr><td>Locale</td><td>Dropdown</td><td>Select the locale on which you want to work on</td></tr><tr><td>locale</td><td>Text</td><td>Provide any name to create the locale which is required</td></tr></tbody></table>

6. Provide any name for the locale and click on Create. For example - Password-invalidation.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXc1t1zrZ7RdCgE4eW4vlKKLO4-eA7PdmNJMkOT_1Bz4z6HaDH6kvDKzzkQuJ8YxI6u1VXkWo7cFo0U6e8PE5CjXShuJaQoK_V1QVnC9T8MO4bu8D28HL8gstQ-M6DRu7AfLhgaZTMbiem62jFOyqZt0bhCgPI3hTpmmyYj_LFpaLsF3ixE6x7o?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

7. Mention the key as - check-password-expiry and value as false.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXekWeWaqHxThjaTlAXFJfY8w7e0VRBRr8ypa-rR6VobUSze6cMVRF2jznRl4c-1sMBDwzjcfxej-SUUGu6xMLPneQAlFrgIi-dLA7GQX1mOwNYKkli0nJekW9VbWPHbcNXQiUAVfNdPQPlM4bSXW4IxfuhpxDX7Pq7B709c49nfxilT7zMJC8c?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="155">Field Name</th><th width="167">Field Type</th><th>Description</th></tr></thead><tbody><tr><td>Key</td><td>Text</td><td>Enter the attribute that you want to define within this locale</td></tr><tr><td>Value</td><td>Text</td><td>Enter the value that needs to be defined for that attribute</td></tr></tbody></table>

8. Click on Save.
9. Click on the dropdown for Locale and select Password-invalidation.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfKvkhJh9bhXsMDrGarl0dV4WgltswQzIIHDJ_rQqggw9C22e-eMu3XQLP5pEpDvSmqmXCfmdiBvY2nTI8rgyPNtJl82uF4C30AfWYE1OJM4JBVwcAfZgGNxEwBzB8E1iWKPmlFdZF_qpWXr9lbmGssHNgj0L6PVEN35BnQa9AF_gV1ADjtAKY?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

A table will be displayed containing the Key-Value pairs and the Actions to Edit or Delete it.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXeSjh7_zQKStJT9go1aWMJZik1LcfNGT0XHA45ExJ1jkxrV3B5u07m4F45yGDXfWi1Q0VTrA8xdI3gVMUi3MZyQtxNkxjDCnwmQ6RiPPgZLNLhI8PYVoHLxY5T-pqe-Bf2VX3NVL-dkLagxoegdZW1v01KHr79ooAZRJTb5XFD1oK4rfpy1Bg?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

10. Click on Add localization text.
11. Provide the Key as password-warning-time and any number as Value, example - 7.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXc6qFs-WuE4Qr-t0PO8AZ2T3MSih9ITDwKKCsca52y33sl8cT7yVisgmBAzeHJEsbXw8hUoluES4QBDlRmjXBUDCNYLz397mEuscZzuA7bCC7ubIhQEi1EojU0mCBBNPrhYMrX4QnzW8jD_HSE3Ab8mQ9969BYt21ojuyZuxoFzJGAL3CT1cGk?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="147">Field Name</th><th width="167">Field Type</th><th>Description</th></tr></thead><tbody><tr><td>Key</td><td>Text</td><td>Enter the attribute that you want to define within this locale</td></tr><tr><td>Value</td><td>Text</td><td>Enter the value that needs to be defined for that attribute</td></tr></tbody></table>

12. Click on Save.
13. Again click on the dropdown for Locale and select Password-invalidation.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfiidfkkuMU6uFciDV6ofxgE4wnRRK165QRiKkYCOKgVf9rmP14a-dzesyV801dp7iDznpLO3eW-EpRbsWWpKKv9F3l-Tcr8TnU8aTmti3svhpbve7_JdPy6hh8HZKM78zSmOvsX6GXrfRUbE3NINIwWc9-_izWJ76mky1ZLuMZA8ntBW3ihw?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXdvtt6jScC3PiDPE-oHvjzKxrbNOk44E-61vgp0NOShauNa_93NHxFqrGwBdjPvHmJFM9Xf6lXfHeX8Sx4OLu2MAov01u1AmfGYRyPJrZ_t4UFMN2GbJ3Cf8CCDtqwU84Ltg5yaD-D8PwWbXIY_NSrQIarOuC5GGQK8h2BE4LUSmDgF8rZBc4U?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

14. Again click on Add localization text.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfG9-NIv83MfUitOhfDtlf9jxZ89wUwZUnn-AHUBJx95P6kVwaRelemZHSYmpdWRpEb4FyEr3Ue9uQcLMiZJTd-JKlsONTtZVu_pQhomt4dyL2Zs--v4UPH2KvqCnsG0-vHTl5MY8Uj-eA_51AuE1o0F0-ondQjAb0gz7K51L2XDz2jJUlD5w?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="150">Field Name</th><th width="154">Field Type</th><th>Description</th></tr></thead><tbody><tr><td>Key</td><td>Text</td><td>Enter the attribute that you want to define within this locale</td></tr><tr><td>Value</td><td>Text</td><td>Enter the value that needs to be defined for that attribute</td></tr></tbody></table>

15. Enter the Key as password-warning-time-unit and Value as required. Value can be minutes, hours, days.
16. Click on Save.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXckFX6ALBEv0DQyvgJ6nbHJRAB_czo4VGeTcYdhJzlAV3xKWeN5fN4P6qBfY9ll9cYsMKHlWWwdYSkegkORcE-EC0l7NuOtvlcazaBUOWh5TG_jFU-sp2z0jzk65bd0-9TNFAdShtFXuTnNLwxWp677i_YuvY1nsKxIVVl1PD1to_uKXfL9ig?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

17. Again click on Add localization text.

<figure><img src="/files/uebSu4W2J3btbzKCNmP9" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="157">Field Name</th><th width="162">Field Type</th><th>Description</th></tr></thead><tbody><tr><td>Key</td><td>Text</td><td>Enter the attribute that you want to define within this locale</td></tr><tr><td>Value</td><td>Text</td><td>Enter the value that needs to be defined for that attribute</td></tr></tbody></table>

18. Enter the Key as api-base-url and Value as required.
19. Click on Save.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXeoPBC8v652L4Us65VLMqfr481WSCaDzmo-BuSQjD5qp3Hictryuptw_ZCoUReEUBckdfkVyqOfYMPEJJLPK0pPe_wPQ3Q81LTj1EMNSV3FtS9nXCVxCJs_SpV1D_zMp4bJ9wYf55Z6XanaQgV_jzqidyK3OZ__r1-CLzsbLTLqydU8ko2uyQ?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

20. Click on Edit Action for check-password-expiry.
21. Change the Value to true from false.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXdyEhPJek2-1GaIVAjWiVWoo40aKReFYl92cQD8IOxcpQVXHjhv6KCK2epcxApEYoqw7gIR6bShirTZEXR1f7UXDYtxT9J8_7459nxz8RPkdIvBlOUafuB4i-8rjj7Gqf9oPr7FcSMK2uSZ6KJDdBcDUYCI4R26ggNKzwRUnjfvFS7L-51lBc8?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

22. Click on Save.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXeoPBC8v652L4Us65VLMqfr481WSCaDzmo-BuSQjD5qp3Hictryuptw_ZCoUReEUBckdfkVyqOfYMPEJJLPK0pPe_wPQ3Q81LTj1EMNSV3FtS9nXCVxCJs_SpV1D_zMp4bJ9wYf55Z6XanaQgV_jzqidyK3OZ__r1-CLzsbLTLqydU8ko2uyQ?key=trHzRgGTD4ANqZgrt456QA" alt=""><figcaption></figcaption></figure>

<br>
