# Bitbucket extension: get\_user script not allowed

**URL:** <https://community.auth0.com/t/bitbucket-extension-get-user-script-not-allowed/6336>\
**Category:** Get Help\
**Tags:** bitbucket-extension, deployment\
**Created:** [April 24, 2017, 5:39pm UTC](https://community.auth0.com/t/bitbucket-extension-get-user-script-not-allowed/6336 "2017-04-24T17:39:45Z")\
**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 24, 2017, 5:39pm UTC](https://community.auth0.com/t/bitbucket-extension-get-user-script-not-allowed/6336/1 "2017-04-24T17:39:45Z")

</div>

I can’t deploy my custom database connection scripts from bitbucket because the `get_user.js` script is not allowed, however it is editable and testable from the dashboard.

What did I miss ?

```
2017-04-24T09:36:37.260Z - Import User to Auth0 enabled: false. Allowed scripts: 
  "create",
  "verify",
  "login",
  "change_password",
  "delete"
]
2017-04-24T09:36:37.261Z - Error: The get_user script is not allowed for custom-db.
2017-04-24T09:36:37.262Z - StackTrace: ValidationError: The get_user script is not allowed for custom-db.
    at /data/auth0-bitbucket-deploy-2.1.js:1:10371
    at Array.forEach (native)
    at i (/data/auth0-bitbucket-deploy-2.1.js:1:10327)
    at o.map.concurrency (/data/auth0-bitbucket-deploy-2.1.js:1:10838)
    at tryCatcher (/data/_verquire/mongoose/4.1.6/node_modules/bluebird/js/main/util.js:24:31)
    at MappingPromiseArray._promiseFulfilled (/data/_verquire/mongoose/4.1.6/node_modules/bluebird/js/main/map.js:54:38)
    at MappingPromiseArray.init (/data/_verquire/mongoose/4.1.6/node_modules/bluebird/js/main/promise_array.js:92:18)
    at MappingPromiseArray.init (/data/_verquire/mongoose/4.1.6/node_modules/bluebird/js/main/map.js:27:23)
    at bound (domain.js:287:14)
    at MappingPromiseArray.runBound (domain.js:300:12)
    at Async._drainQueue (/data/_verquire/mongoose/4.1.6/node_modules/bluebird/js/main/async.js:182:12)
    at Async._drainQueues (/data/_verquire/mongoose/4.1.6/node_modules/bluebird/js/main/async.js:187:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/data/_verquire/mongoose/4.1.6/node_modules/bluebird/js/main/async.js:15:14)
    at processImmediate [as _immediateCallback] (timers.js:383:17)

```

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [May 9, 2017, 6:33pm UTC](https://community.auth0.com/t/bitbucket-extension-get-user-script-not-allowed/6336/2 "2017-05-09T18:33:37Z")

</div>

The missing `get_user` script was added to the shared library being used by the source control related extension as part of this pull request ([Fixing #15 by sgmeyer · Pull Request #16 · auth0-extensions/auth0-source-control-extension-tools · GitHub](https://github.com/auth0-extensions/auth0-source-control-extension-tools/pull/16)).

Then there was pull request specific to the Bitbucket extension that updated the shared library in question (see [Tools (auth0 and source-control) updated by zxan1285 · Pull Request #16 · auth0-extensions/auth0-bitbucket-deploy · GitHub](https://github.com/auth0-extensions/auth0-bitbucket-deploy/pull/16)).

This means that the above should no longer be an issue in the latest released version (at this time 2.2) of the Bitbucket extension. If you are still experiencing the issue please make sure to update to the latest version.

---

<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/bitbucket-extension-get-user-script-not-allowed/6336/3 "2018-03-02T05:53:27Z")

</div>


