# Why is the first and last name not showing correctly in the user database

**URL:** <https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [March 26, 2024, 12:00am UTC](https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466 "2024-03-26T00:00:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![billyfanning3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/billyfanning3/32/55878_2.png) [@billyfanning3](https://community.auth0.com/u/billyfanning3)\
**Post date:** [March 26, 2024, 12:00am UTC](https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466/1 "2024-03-26T00:00:21Z")

</div>

Why is it that when users log in using an email and password, their first and last names do not properly enter in the first and last name fields in the Auth0 database? This data (first and last name) only shows in metadata, and their email is re-entered as their name.

> **[GIF Recording 2024-03-25 at 5.54.08 PM.gif](https://jumpshare.com/v/PBCSwNYmLHyH2GHuJhAk)**
>
> Shared with Jumpshare

This makes searching for users really hard. And considering that curating the login functionality is a core utility, this seems like a big thing to not work properly. And note if they log in with Google, the first and last name correctly show in the correct fields.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 26, 2024, 1:24am UTC](https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466/3 "2024-03-26T01:24:20Z")

</div>

Hi @billyfanning3,

Welcome to the Auth0 Community!

That is by design. You can workaround this by asking the user to submit their first and last name during the sign up process. See [this knowledge solution](https://community.auth0.com/t/how-to-configure-additional-signup-fields-on-the-universal-login-page/82448) for more information.

Let me know if you have any questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![billyfanning3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/billyfanning3/32/55878_2.png) [@billyfanning3](https://community.auth0.com/u/billyfanning3)\
**Post date:** [March 26, 2024, 4:32pm UTC](https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466/4 "2024-03-26T16:32:04Z")

</div>

Hi Reuben! Thank you so much for responding. So [we definitely collect this information during the signup process](https://jumpshare.com/v/8HxSOWXvNIVbi8KC4RLK).

What am I missing? This whole situation is very surprising to me. Thank you - really appreciate you!

Billy

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 27, 2024, 5:56pm UTC](https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466/5 "2024-03-27T17:56:26Z")

</div>

Hi @billyfanning3,

Thanks for replying.

Have you ensured these attributes are saved to other user’s root attributes?

For example:

```auto
var options = {
  additionalSignUpFields: [{
    name: "given_name",
    storage: "root"
  }]
};

```

Cheers,  
Rueben

---

<div class="post-metadata">

**Author:** ![billyfanning3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/billyfanning3/32/55878_2.png) [@billyfanning3](https://community.auth0.com/u/billyfanning3)\
**Post date:** [April 1, 2024, 3:03pm UTC](https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466/6 "2024-04-01T15:03:37Z")

</div>

Shoot Reuben! I am not sure how I missed this response. I am sharing this with our dev now. I am not the technical guy, ha.

Thank you!

---

<div class="post-metadata">

**Author:** ![omer.xh1998](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/omer.xh1998/32/56037_2.png) [@omer.xh1998](https://community.auth0.com/u/omer.xh1998)\
**Post date:** [April 1, 2024, 9:40pm UTC](https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466/7 "2024-04-01T21:40:09Z")

</div>

Hey Reuben. This is how our additional fields are set up.

additionalSignUpFields: [  
{  
name: “given\_name”,  
placeholder: “Enter your name”,  
validator: function(givenName) {  
return {  
valid: givenName.length \> 0,  
hint: “Your first name is required”  
};  
}  
},  
{  
name: “family\_name”,  
placeholder: “Enter your surname”,  
validator: function(familyName) {  
return {  
valid: familyName.length \> 0,  
hint: “Your last name is required”  
};  
}  
}  
]

Though when I add storage: ‘root’, the metadata no longer show. So, givenName and familyName no longer are recognised in metadata. All we need is that givenName and familyName are shown on the table when user’s sign up with email and password, just like it is when the sign up with social so then we can easily search them by name.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 4, 2024, 1:47am UTC](https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466/8 "2024-04-04T01:47:22Z")

</div>

Hi @omer.xh1998,

Yes, that is normal. If you choose to store it as `storage: "root"` then it will be stored in the user’s root attribute and not in the user\_metadata.

After doing so, you can directly request the user’s `given_name` and `family_name`.

Thanks,  
Rueben

---

<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:** [April 18, 2024, 1:47am UTC](https://community.auth0.com/t/why-is-the-first-and-last-name-not-showing-correctly-in-the-user-database/130466/9 "2024-04-18T01:47:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
