# Is it possible to use the Auth0 db and a custom external db to store user data at sign up?

**URL:** <https://community.auth0.com/t/is-it-possible-to-use-the-auth0-db-and-a-custom-external-db-to-store-user-data-at-sign-up/134686>\
**Category:** Get Help\
**Tags:** custom-database-connections, connections\
**Created:** [May 22, 2024, 8:58am UTC](https://community.auth0.com/t/is-it-possible-to-use-the-auth0-db-and-a-custom-external-db-to-store-user-data-at-sign-up/134686 "2024-05-22T08:58:09Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![david.doyle7](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.doyle7/32/57273_2.png) [@david.doyle7](https://community.auth0.com/u/david.doyle7)\
**Post date:** [May 22, 2024, 4:16pm UTC](https://community.auth0.com/t/is-it-possible-to-use-the-auth0-db-and-a-custom-external-db-to-store-user-data-at-sign-up/134686/7 "2024-05-22T16:16:08Z")

</div>

I found this answer helpful and I combined the script here : [How to add users to mongoDB when new user's sign in - #2 by ax0nic](https://community.auth0.com/t/how-to-add-users-to-mongodb-when-new-users-sign-in/69173/2). ( You can swap out his MONGO\_SECRET for your own connections string that you get from your mongodb dashboard

with the template one given in the actions section :

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/9/e9940628d904833bc936821ffab752f0b63cab4f.png)

Also the script from this post will do the same in case anyone else ends up stuck too: [Store Google authenticated users into a custom](https://community.auth0.com/t/store-google-authenticated-users-into-a-custom/103307)

Sorry for the bother ! Thanks

I should also say that this only works for people signing in without using social sign in with Google or another provider. In that case the user only gets added to the Auth0 DB

---

_[View the full topic](https://community.auth0.com/t/is-it-possible-to-use-the-auth0-db-and-a-custom-external-db-to-store-user-data-at-sign-up/134686)._
