# Using LDAP all users and groups records not sync

**URL:** <https://forum.flowable.org/t/using-ldap-all-users-and-groups-records-not-sync/5744>\
**Category:** Flowable Engine\
**Created:** [March 31, 2020, 4:20pm UTC](https://forum.flowable.org/t/using-ldap-all-users-and-groups-records-not-sync/5744 "2020-03-31T16:20:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit45621](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@ankit45621](https://forum.flowable.org/u/ankit45621)\
**Post date:** [March 31, 2020, 4:20pm UTC](https://forum.flowable.org/t/using-ldap-all-users-and-groups-records-not-sync/5744/1 "2020-03-31T16:20:12Z")

</div>

Hi,

I am using LDAP configuration in my flowable-idm and i found that detail of users and group showing correctly in flowable-idm UI portal as in LDAP but when i check in act\_id\_user and act\_id\_group table of postgres then users and groups entries not available in these table.

Please help me for docker configuration that sync all data of LDAP to postgresql db’s tables.

docker-compose.yml:  
environment:

- SERVER\_PORT=9090
- SPRING\_DATASOURCE\_DRIVER-CLASS-NAME=org.postgresql.Driver
- SPRING\_DATASOURCE\_URL=\<\>
- SPRING\_DATASOURCE\_USERNAME=\<\>
- SPRING\_DATASOURCE\_PASSWORD=\<\>  
#Default LDAP Admin User
- FLOWABLE\_IDM\_APP\_ADMIN\_USER\_ID=\<\>
- FLOWABLE\_IDM\_APP\_ADMIN\_PASSWORD=\<\>
- FLOWABLE\_IDM\_APP\_ADMIN\_FIRST\_NAME=\<\>
- FLOWABLE\_COMMON\_APP\_IDM\_ADMIN\_USER=\<\>
- FLOWABLE\_COMMON\_APP\_IDM\_ADMIN\_PASSWORD=\<\>  
#FLowable-Ldap Configuration
- FLOWABLE\_IDM\_LDAP\_ENABLED=true
- FLOWABLE\_IDM\_LDAP\_SERVER=
- FLOWABLE\_IDM\_LDAP\_PORT=389
- FLOWABLE\_IDM\_LDAP\_USER=\<\>
- FLOWABLE\_IDM\_LDAP\_PASSWORD=\<\>
- FLOWABLE\_IDM\_LDAP\_BASE\_DN=\<\>  
#Users
- FLOWABLE\_IDM\_LDAP\_USER\_BASE\_DN=\<\>
- FLOWABLE\_IDM\_LDAP\_QUERY\_USER\_BY\_FULL\_NAME\_LIKE=(&(objectClass=inetOrgPerson)(|({0}= _{1}_ )({2}= _{3}_ )))
- FLOWABLE\_IDM\_LDAP\_QUERY\_USER\_BY\_ID=(&(objectClass=inetOrgPerson)(uid={0}))
- FLOWABLE\_IDM\_LDAP\_QUERY\_ALL\_USERS=(objectClass=inetOrgPerson)
- FLOWABLE\_IDM\_LDAP\_ATTRIBUTE\_USER\_ID=uid
- FLOWABLE\_IDM\_LDAP\_ATTRIBUTE\_FIRST\_NAME=cn
- FLOWABLE\_IDM\_LDAP\_ATTRIBUTE\_LAST\_NAME=sn  
#Groups
- FLOWABLE\_IDM\_LDAP\_GROUP\_BASE\_DN=\<\>
- FLOWABLE\_IDM\_LDAP\_QUERY\_GROUPS\_FOR\_USER=(&(objectClass=posixGroup)(gidNumber={0}))
- FLOWABLE\_IDM\_LDAP\_QUERY\_ALL\_GROUPS=(objectClass=posixGroup)
- FLOWABLE\_IDM\_LDAP\_QUERY\_GROUP\_BY\_ID=(&(objectClass=posixGroup)(gidNumber={0}))
- FLOWABLE\_IDM\_LDAP\_ATTRIBUTE\_GROUP\_ID=gidNumber
- FLOWABLE\_IDM\_LDAP\_ATTRIBUTE\_GROUP\_NAME=cn
- FLOWABLE\_IDM\_LDAP\_CACHE\_GROUP\_SIZE=10000
- FLOWABLE\_IDM\_LDAP\_CACHE\_GROUP\_EXPIRATION=180000

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [April 2, 2020, 7:11am UTC](https://forum.flowable.org/t/using-ldap-all-users-and-groups-records-not-sync/5744/2 "2020-04-02T07:11:26Z")

</div>

Hey @ankit45621,

When you are using LDAP the Flowable user and groups are empty, since you are using a third party provider for the users and groups.

There isn’t a sync option out of the box.

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![ankit45621](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@ankit45621](https://forum.flowable.org/u/ankit45621)\
**Post date:** [April 3, 2020, 1:03am UTC](https://forum.flowable.org/t/using-ldap-all-users-and-groups-records-not-sync/5744/3 "2020-04-03T01:03:07Z")

</div>

@filiphr Thanks for response but when i use only LDAP configration then i am getting issue. Can you please help me to solve at: [Act\_id\_priv\_mapping not adding user of group record](https://forum.flowable.org/t/act-id-priv-mapping-not-adding-user-of-group-record/5755/12)
