# Auth0 custom database api fields

**URL:** <https://community.auth0.com/t/auth0-custom-database-api-fields/7635>\
**Category:** Get Help\
**Tags:** custom-database, management-api\
**Created:** [July 24, 2017, 3:58pm UTC](https://community.auth0.com/t/auth0-custom-database-api-fields/7635 "2017-07-24T15:58:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan-Neal\_Mes](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Ryan-Neal\_Mes](https://community.auth0.com/u/Ryan-Neal_Mes)\
**Post date:** [July 24, 2017, 3:58pm UTC](https://community.auth0.com/t/auth0-custom-database-api-fields/7635/1 "2017-07-24T15:58:07Z")

</div>

I want to sign a user up with additional metadata, but I don’t want that data stored on auth0.

For example

email: some\_email  
password: xyz123  
country\_of\_residence: UK - this is additional meta data

I am using a custom database connection to my database. I can get the custom database create/login script to work and I can save the data to my database using the user\_metadata which comes through on my create script. The problem I am having is the data gets saved to auth0 as well. It seems like user\_metadata is automatically saved.

I have done a lot of research and there doesn’t seem to be another way to do this (create the user with meta data, but not save that data on auth0). What is the proper way to save meta data for custom databases when signing up a user? It almost feels like you guys are missing a custom\_database\_metadata option to pass data.

---

<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:** [August 4, 2017, 8:24pm UTC](https://community.auth0.com/t/auth0-custom-database-api-fields/7635/2 "2017-08-04T20:24:29Z")

</div>

I might be missing something, but is there a strong reason to not consider creating the users directly against your underlying store. The custom database supports user creation brokered through the Auth0 API, but it’s not technically required and for full control you can create the user in your store first.

The above would mean the user would only be available/visible to Auth0 at first login because that’s when the login script would be executed which would then store the returned user data as part of the Auth0 user profile. Given you can control the data returned by the login script this would allow you to not return any data that is associated to the user in your store, but that you don’t want to make it available at the Auth0 user profile.

---

<div class="post-metadata">

**Author:** ![Ryan-Neal\_Mes](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Ryan-Neal\_Mes](https://community.auth0.com/u/Ryan-Neal_Mes)\
**Post date:** [August 7, 2017, 2:57pm UTC](https://community.auth0.com/t/auth0-custom-database-api-fields/7635/3 "2017-08-07T14:57:51Z")

</div>

I am not really following why the user would only be available on the first login. Surely users would log in multiple times and the data would be refreshed.

---

<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:** [August 7, 2017, 5:24pm UTC](https://community.auth0.com/t/auth0-custom-database-api-fields/7635/4 "2017-08-07T17:24:27Z")

</div>

If you create the user directly at your store then Auth0 will not know it was created or that it exists until the first operation that goes through Auth0 and targets that user; that operation is usually the login one. What I was trying to say was that the user would only have an Auth0 user profile **after** that first operation/login.

---

<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:55am UTC](https://community.auth0.com/t/auth0-custom-database-api-fields/7635/5 "2018-03-02T05:55:34Z")

</div>


