# LDAP overwrites all roles

**URL:** <https://community.zammad.org/t/ldap-overwrites-all-roles/7424>\
**Category:** Technical assistance\
**Created:** [August 8, 2021, 3:00pm UTC](https://community.zammad.org/t/ldap-overwrites-all-roles/7424 "2021-08-08T15:00:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dante4](https://community.zammad.org/letter_avatar_proxy/v4/letter/d/ea5d25/32.png) [@Dante4](https://community.zammad.org/u/Dante4)\
**Post date:** [August 8, 2021, 3:00pm UTC](https://community.zammad.org/t/ldap-overwrites-all-roles/7424/1 "2021-08-08T15:00:29Z")

</div>

- Used Zammad version: 4.1.0-1628189510
- Used Zammad installation type: package
- Operating system: Ubuntu 18.05

### Expected behavior:

- Add mapping to role 1 via ldap
- Manually add role 2 to agent
- Click sync LDAP
- Agent have role 1 and 2

### Actual behavior:

- Agent only have role 1

### Steps to reproduce the behavior:

- Add mapping to role 1 via ldap
- Manually add role 2 to agent
- Click sync LDAP

---

<div class="post-metadata">

**Author:** ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)\
**Post date:** [August 17, 2021, 7:04pm UTC](https://community.zammad.org/t/ldap-overwrites-all-roles/7424/2 "2021-08-17T19:04:07Z")

</div>

> [@Dante4](#):
>
> - Add mapping to role 1 via ldap
> - Manually add role 2 to agent
> - Click sync LDAP
> - Agent have role 1 and 2

This is exactly what you shouldn’t do.  
Zammad expects the LDAP source to be the most current one and thus expect it to be the only truth in the system.

---

<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:** [December 15, 2021, 7:04pm UTC](https://community.zammad.org/t/ldap-overwrites-all-roles/7424/3 "2021-12-15T19:04:22Z")

</div>

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