# Directory sync: Active Directory: How to sync nested groups?

**URL:** <https://discuss.workflowgen.com/t/directory-sync-active-directory-how-to-sync-nested-groups/513>\
**Category:** Directory Management\
**Created:** [April 12, 2014, 4:26am UTC](https://discuss.workflowgen.com/t/directory-sync-active-directory-how-to-sync-nested-groups/513 "2014-04-12T04:26:18Z")\
**Posts on this page:** 1\
**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:** [April 12, 2014, 4:26am UTC](https://discuss.workflowgen.com/t/directory-sync-active-directory-how-to-sync-nested-groups/513/1 "2014-04-12T04:26:18Z")

</div>

For performance reasons, the WorkflowGen database doesn’t support nested groups. Instead, a solution is to “flatten” the group hierarchy before performing the directory synchronization.

1. In WorkflowGen: Use the Text synchronization.

2. Create a script that exports the users, groups, and user-group associations from Active Directory into text files.

Nested groups are managed this way:

**In Active Directory**

- Group Parent

**In Text files**

Four groups, each of which contains all of the users of the nested groups:

- Group Parent

- Group Child 1

- Group Child 2

- Group Child 3
