# Active Directory import question

**URL:** https://community.zammad.org/t/active-directory-import-question/2869
**Category:** Technical assistance
**Created:** [July 26, 2019, 11:03am UTC](https://community.zammad.org/t/active-directory-import-question/2869 "2019-07-26T11:03:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![LittleNo](https://community.zammad.org/letter_avatar_proxy/v4/letter/l/ea5d25/32.png) [@LittleNo](https://community.zammad.org/u/LittleNo)
#### Post date: [July 26, 2019, 11:03am UTC](https://community.zammad.org/t/active-directory-import-question/2869/1 "2019-07-26T11:03:43Z")

</div>

### Infos:

- Used Zammad version: 2.9
- Used Zammad installation source: (source, package, …) package
- Operating system: Ubuntu 18.04
- Browser + version: any

In my environment I have imported all users from my AD thru LDAP integration.

Because I want all users to be available as a customer in zammad (for organisation internal support) I set a LDAP filter like that (set to zammad role Customer):

cn=alle,ou=ou\_exchange,ou=ou\_organisation,dc=domain,dc=de

So far that’s fine. Then I have an AD group that contains all my agents. This group is mapped to zammad role Agent by this filter:

cn=agents,ou=ou\_devisioni,ou=ou\_organisation,dc=domain,dc=de

That works to set those users as an agent, however, since these users are also contained in the AD group “alle” they are still mapped to the “Customer” role as well.

Is there a filter-option to exclude an AD-group from being imported? that would be the easiest solution in the first “Customer”-Role filter to exclude all Agents from being mapped there

---

<div class="post-metadata">

### Author: ![anon29869905](https://community.zammad.org/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@anon29869905](https://community.zammad.org/u/anon29869905)
#### Post date: [July 29, 2019, 11:18am UTC](https://community.zammad.org/t/active-directory-import-question/2869/2 "2019-07-29T11:18:58Z")

</div>

Hi @LittleNo - I think the error you are facing is [https://github.com/zammad/zammad/issues/2540](https://github.com/zammad/zammad/issues/2540) which might be fixed with [https://github.com/zammad/zammad/pull/2592](https://github.com/zammad/zammad/pull/2592) - but we haven’t verified yet. Would be cool if you could share you results if you decide to apply this PR.  
Please be aware that we can’t and won’t support custom changes.

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [November 26, 2019, 11:19am UTC](https://community.zammad.org/t/active-directory-import-question/2869/3 "2019-11-26T11:19:00Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
