# Sync LDAP Groups through several LDAP Providers

**URL:** <https://forum.keycloak.org/t/sync-ldap-groups-through-several-ldap-providers/10165>\
**Category:** Getting advice\
**Tags:** ldap\
**Created:** [July 21, 2021, 6:54pm UTC](https://forum.keycloak.org/t/sync-ldap-groups-through-several-ldap-providers/10165 "2021-07-21T18:54:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![holema](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/holema/32/3584_2.png) [@holema](https://forum.keycloak.org/u/holema)\
**Post date:** [July 21, 2021, 6:54pm UTC](https://forum.keycloak.org/t/sync-ldap-groups-through-several-ldap-providers/10165/1 "2021-07-21T18:54:47Z")

</div>

Hello,  
I try to solve an issue with LDAP group synchronisation.  
The LDAP is an AD.  
I have the Situation:  
There are 3 diffenerent LDAP providers configured.  
The users are synced from these three LDAPs with different priorities. This step works.  
The LDAPs are federated and trust each other.

Now we have the groups:  
There are only set in the main LDAP we call him MASTERLDAP.  
The groupmapper is now set in the MASTERLDAP settings to connect the users which are imported from all three LDAPs to the group which is delivered only from the MASTERLDAP server.

Is there a way to add the users, which are deliverd in the group from the MASTERLDAP, identitfied by their sAMAccountName, to the group even if they are from an other LDAP provider.

---

<div class="post-metadata">

**Author:** ![holema](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/holema/32/3584_2.png) [@holema](https://forum.keycloak.org/u/holema)\
**Post date:** [August 3, 2021, 5:31pm UTC](https://forum.keycloak.org/t/sync-ldap-groups-through-several-ldap-providers/10165/2 "2021-08-03T17:31:20Z")

</div>

Little Push. Does anybody had the the same problem?
