# Directory: How to unarchive a user

**URL:** https://discuss.workflowgen.com/t/directory-how-to-unarchive-a-user/507
**Category:** Directory Management
**Created:** [August 15, 2013, 9:29pm UTC](https://discuss.workflowgen.com/t/directory-how-to-unarchive-a-user/507 "2013-08-15T21:29:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)
#### Post date: [August 15, 2013, 9:29pm UTC](https://discuss.workflowgen.com/t/directory-how-to-unarchive-a-user/507/1 "2013-08-15T21:29:33Z")

</div>

The directory user form doesn’t allow an administrator to unarchive a user.

The workaround is to directly update the database table:

In the `USERS` database table, when a user is archived their username is prefixed by `ARCHIVED_` , the `ARCHIVE` field is set to `Y`, and the `ACTIVE` field is set to `N`.

To set the user as active again you have to remove the username prefix, set the `ARCHIVE` field to `N`, the `DATE_ARCHIVE` field to `NULL`, and the `ACTIVE` field to `Y`.

---

<div class="post-metadata">

### Author: ![dcarruth](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dcarruth](https://discuss.workflowgen.com/u/dcarruth)
#### Post date: [August 6, 2019, 12:20am UTC](https://discuss.workflowgen.com/t/directory-how-to-unarchive-a-user/507/2 "2019-08-06T00:20:48Z")

</div>

Is this still the best approach to unarchive a user that was automatically archived by the directory sync?
