# Deploy global database connection settings using bitbucket extentsion or the management api

**URL:** <https://community.auth0.com/t/deploy-global-database-connection-settings-using-bitbucket-extentsion-or-the-management-api/6357>\
**Category:** Get Help\
**Tags:** bitbucket-extension, custom-database, management-api\
**Created:** [April 25, 2017, 10:43pm UTC](https://community.auth0.com/t/deploy-global-database-connection-settings-using-bitbucket-extentsion-or-the-management-api/6357 "2017-04-25T22:43:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![damien.de.lemeny](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@damien.de.lemeny](https://community.auth0.com/u/damien.de.lemeny)\
**Post date:** [April 25, 2017, 10:43pm UTC](https://community.auth0.com/t/deploy-global-database-connection-settings-using-bitbucket-extentsion-or-the-management-api/6357/1 "2017-04-25T22:43:12Z")

</div>

I am wondering how to programmatically set the values of the custom database settings that populate the global `configuration` object.

Is it possible to set this global object without using the dashboard ?

Is it possible to do that with more complex objects than simple key:values ? For example, can I define global helper functions to use in these scripts ?

---

<div class="post-metadata">

**Author:** ![thameera](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thameera/32/13430_2.png) [@thameera](https://community.auth0.com/u/thameera)\
**Post date:** [April 28, 2017, 1:06pm UTC](https://community.auth0.com/t/deploy-global-database-connection-settings-using-bitbucket-extentsion-or-the-management-api/6357/2 "2017-04-28T13:06:39Z")

</div>

At the moment it is not possible to set the configuration values via the API. You have to use the dashboard for this.

You can use [global functions](https://auth0.com/docs/rules#global-functions) in rules, but not with database action scripts. If you have common code and would like to avoid duplication, I’d suggest that you use the Bitbucket extension, add common code separately and use a build process to concatenate the functions during the push, so they will appear in all scripts when being deployed to Auth0.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/deploy-global-database-connection-settings-using-bitbucket-extentsion-or-the-management-api/6357/3 "2018-03-02T05:53:29Z")

</div>


