# 4.21 Setup Archive Inactive User feature

If an inactive user doesn't engage even after receiving the email notification, their account will be archived for the specified number of days, after which it will be deactivated.

To set up the feature for archiving the Inactive User, do the following steps

1. Login to ZTrust Admin Console.
2. Go to Realm Settings.

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2Fou474FORQXmJgqoPW7Nd%2Fimage.png?alt=media&#x26;token=e29ec811-ac31-4ba0-9375-d3a3b44b5f39" alt=""><figcaption><p>Fig. 4.21.a: Navigating to Realm Settings</p></figcaption></figure>
3. Go to the Localization tab.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FRTwmO9u2y28Qupjtr0Tb%2F19.png?alt=media&#x26;token=581db560-d246-4401-a48d-5758fd68a687" alt=""><figcaption><p>Fig. 4.21.b: Navigating to Localization in Realm Settings</p></figcaption></figure>

4. Go to the Realm overrides tab.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FlFPZDlPbuYKMniyok86a%2F20.png?alt=media&#x26;token=271f718a-d99d-4883-8662-6ebfae9a5fc8" alt=""><figcaption><p>Fig. 4.21.c: Navigating to Realm Settings ⇒ Localization ⇒ Realm Overrides</p></figcaption></figure>

5. Click on Add translation.
6. Provide the Key as deactivate-inactive-users and Value as False.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FM7WZpZXhZS46QcNj9IX0%2F21.png?alt=media&#x26;token=1366fd1e-be12-4a9a-a0d7-e5178c1d0e3b" alt=""><figcaption><p>Fig. 4.21.d: Adding a new translation for enablng/disabling archival of inactive users</p></figcaption></figure>

7. Click on Create.
8. Click on Add translation.
9. Provide the Key as required, for example - deactivation-time and the Value as 8 (example).

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FGiCLJV9D2J11X410TETR%2F22.png?alt=media&#x26;token=6356d189-e76a-4a42-ad47-10e2824eaa47" alt=""><figcaption><p>Fig. 4.21.e: Adding a new translation for deactivation time</p></figcaption></figure>

10. Click on Create.
11. Click on Add translation.
12. Create a Key as deactivation-time-unit and Value as days, hours or minutes. For example - minutes

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2Fte44E1nqmAavWnVgjrhj%2F23.png?alt=media&#x26;token=92f3fa35-b302-4d30-8004-2e5ffa2cf24f" alt=""><figcaption><p>Fig. 4.21.f: Adding a new translation for unit of deactivation time</p></figcaption></figure>

13. Click on Create.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FSePoppoQfosNy7CKD3BL%2F24.png?alt=media&#x26;token=c0494ccb-683d-448b-95cf-076351c9514d" alt=""><figcaption><p>Fig. 4.21.g: Created keys for user archival</p></figcaption></figure>

14. Click on Edit for deactivate-inactive-users.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2F4qOiOllKElbwUZVg5Upx%2F24.png?alt=media&#x26;token=475cc512-b23b-4cf2-a9a2-3d4b0fdc2e68" alt=""><figcaption><p>Fig. 4.21.h: Keys for user archival</p></figcaption></figure>

15. Change the Value from false to true.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FZWMlfMrmkQNDDw2cfOjP%2F25.png?alt=media&#x26;token=0722495c-197d-4a65-9408-abbe28f861c4" alt=""><figcaption><p>Fig. 4.21.i: Editing the 'deactivate-inactive-users' key</p></figcaption></figure>

16. Click on the checkmark icon.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FLgGCO27WKvnRbSB7AZCK%2F26.png?alt=media&#x26;token=e3099b6b-e3c9-4969-9d22-f9da1a2dface" alt=""><figcaption><p>Fig. 4.21.j: Making the 'deactivate-inactive-users' true</p></figcaption></figure>

The feature to archive inactive users has been configured now.

\\
