# Custom user database for Authentication & Authorization

**URL:** <https://forum.flowable.org/t/custom-user-database-for-authentication-authorization/768>\
**Category:** Flowable Engine\
**Created:** [July 25, 2017, 1:48am UTC](https://forum.flowable.org/t/custom-user-database-for-authentication-authorization/768 "2017-07-25T01:48:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rprakash88](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@rprakash88](https://forum.flowable.org/u/rprakash88)\
**Post date:** [July 25, 2017, 1:48am UTC](https://forum.flowable.org/t/custom-user-database-for-authentication-authorization/768/1 "2017-07-25T01:48:05Z")

</div>

Hi

I am using FLOWABLE v6.1.1 And we will need to import users/roles from external custom database into FLOWABLE Engine to perform below operations.

- Authentication
- Authorization of user/role for accessing task
- Perform Admin task

From the documentation I could see flowable supporting user authentication/authorization from internal database (BPMDB) and integration with LDAP.

Please can you explain me the steps to import user/role from external custom database

Much Appreciate your response

Thanks

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [July 25, 2017, 8:18am UTC](https://forum.flowable.org/t/custom-user-database-for-authentication-authorization/768/2 "2017-07-25T08:18:24Z")

</div>

The Spring IDM application uses Spring Security under the hood. If you want to switch the authentication, you’d need to change the following Confiuguration class with your custom logic: [https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui-idm/flowable-ui-idm-conf/src/main/java/org/flowable/app/conf/SecurityConfiguration.java](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui-idm/flowable-ui-idm-conf/src/main/java/org/flowable/app/conf/SecurityConfiguration.java) (probably provide a custom Provider)

---

<div class="post-metadata">

**Author:** ![rprakash88](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@rprakash88](https://forum.flowable.org/u/rprakash88)\
**Post date:** [July 26, 2017, 6:57am UTC](https://forum.flowable.org/t/custom-user-database-for-authentication-authorization/768/3 "2017-07-26T06:57:16Z")

</div>

Thanks joram. I will try your recommendation.

---

<div class="post-metadata">

**Author:** ![Vzy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/vzy/32/1158_2.png) [@Vzy](https://forum.flowable.org/u/Vzy)\
**Post date:** [January 3, 2018, 1:33pm UTC](https://forum.flowable.org/t/custom-user-database-for-authentication-authorization/768/4 "2018-01-03T13:33:17Z")

</div>

Hi Joram,

Can you please provide more info. on this, we are not be to divert the IDM user/group data
