# User federation LDAP filtering

**URL:** <https://forum.keycloak.org/t/user-federation-ldap-filtering/12955>\
**Category:** Getting advice\
**Tags:** admin-console, user-federation, ldap\
**Created:** [January 10, 2022, 12:01pm UTC](https://forum.keycloak.org/t/user-federation-ldap-filtering/12955 "2022-01-10T12:01:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajfelix](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@ajfelix](https://forum.keycloak.org/u/ajfelix)\
**Post date:** [January 10, 2022, 12:01pm UTC](https://forum.keycloak.org/t/user-federation-ldap-filtering/12955/1 "2022-01-10T12:01:05Z")

</div>

Hello,

I have an Active Directory LDAP and I’ve successfully connected it to my local Keycloak server throught admin-console. I created a new connection under “User Federation”.

On my LDAP I have a group of users and I want to synchronize the LDAP with Keycloak once a new user is added to my group.

I’m trying to achieve this by adding a “Custom User LDAP Filter” and the option “Periodic Changed Users Sync”, under Sync Settings. But it’s not working.

Can anybody help? Is there a way to achieve this?
