# Act\_id\_priv\_mapping not adding user of group record

**URL:** <https://forum.flowable.org/t/act-id-priv-mapping-not-adding-user-of-group-record/5755>\
**Category:** Flowable Engine\
**Created:** [April 2, 2020, 2:56am UTC](https://forum.flowable.org/t/act-id-priv-mapping-not-adding-user-of-group-record/5755 "2020-04-02T02:56:30Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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 2, 2020, 8:23am UTC](https://forum.flowable.org/t/act-id-priv-mapping-not-adding-user-of-group-record/5755/12 "2020-04-02T08:23:53Z")

</div>

> [@filiphr](#):
>
> You can’t use both LDAP and the DB for users. You have to pick one over the other

When i remove postgresql db source from my configuration and add only LDAP configuration then i am getting following error while adding user to group:

> org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: Referential integrity constraint violation: “ACT\_FK\_MEMB\_GROUP: PUBLIC.ACT\_ID\_MEMBERSHIP FOREIGN KEY(GROUP\_ID\_) REFERENCES PUBLIC.ACT\_ID\_GROUP(ID\_) (‘501’)”; SQL statement:  
> insert into ACT\_ID\_MEMBERSHIP (USER\_ID\_, GROUP\_ID\_)  
> values (  
> ?,  
> ?  
> ) [23506-199]

I am not using h2 in any of configuration. Its helpfull if you add sample docker configuration with LDAP to [flowable-engine/docker/config at main · flowable/flowable-engine · GitHub](https://github.com/flowable/flowable-engine/tree/master/docker/config)

---

_[View the full topic](https://forum.flowable.org/t/act-id-priv-mapping-not-adding-user-of-group-record/5755)._
