User and groups from different database

Hi all,
we have the Camunda database on Postgres and we would like to read users and groups from a separate Postgres database which is also used by the external application which will trigger the processes using REST API. What needs to be done to read users and groups from that database? Do you have some sample app on GITHUB?

As last alternative, we can sync the user and groups tables from Camunda to the ones from the other database but we would like to avoid such process and duplication.

Thanks,
Paul Palacean

Hi Paul,

Here’s an implementation that loads users and groups from LDAP: https://github.com/camunda/camunda-bpm-platform/tree/master/engine-plugins/identity-ldap. The starting point for exploring the code is probably this class: https://github.com/camunda/camunda-bpm-platform/blob/master/engine-plugins/identity-ldap/src/main/java/org/camunda/bpm/identity/impl/ldap/plugin/LdapIdentityProviderPlugin.java. It should be possible to write a similar plugin that loads those entities from a relational database.

Cheers,
Thorben