# API for LDAP sync

**URL:** <https://forum.keycloak.org/t/api-for-ldap-sync/16381>\
**Category:** Getting advice\
**Created:** [July 10, 2022, 12:09pm UTC](https://forum.keycloak.org/t/api-for-ldap-sync/16381 "2022-07-10T12:09:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![miha](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/miha/32/5273_2.png) [@miha](https://forum.keycloak.org/u/miha)\
**Post date:** [July 10, 2022, 12:09pm UTC](https://forum.keycloak.org/t/api-for-ldap-sync/16381/1 "2022-07-10T12:09:19Z")

</div>

Hello

is there API that can trigger LDAP sync?

Tnx  
MIha

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [July 10, 2022, 7:55pm UTC](https://forum.keycloak.org/t/api-for-ldap-sync/16381/2 "2022-07-10T19:55:52Z")

</div>

Yes.

```auto
POST /{realm}/user-storage/{id}/sync

```

Documented here:  
[https://www.keycloak.org/docs-api/18.0/rest-api/index.html#\_syncusers](https://www.keycloak.org/docs-api/18.0/rest-api/index.html#_syncusers)
