# Default profile image isn't using 'Name' field initials

**URL:** <https://community.auth0.com/t/default-profile-image-isnt-using-name-field-initials/74945>\
**Category:** Get Help\
**Created:** [December 15, 2021, 12:05pm UTC](https://community.auth0.com/t/default-profile-image-isnt-using-name-field-initials/74945 "2021-12-15T12:05:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Otis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/otis/32/33798_2.png) [@Otis](https://community.auth0.com/u/Otis)\
**Post date:** [December 15, 2021, 12:05pm UTC](https://community.auth0.com/t/default-profile-image-isnt-using-name-field-initials/74945/1 "2021-12-15T12:05:42Z")

</div>

According to Auth0 documentation, the default user.picture property should show the user’s initials:  
[https://auth0.com/docs/users/change-user-picture](https://auth0.com/docs/users/change-user-picture)

e.g if the name is John Doe, JD should be displayed

However, it seems like it uses the first two characters of the email instead, please see image below

 ![johndoe](https://global.discourse-cdn.com/auth0/original/3X/2/5/255aa7ca8db5872d0af6fc85deaf2600f362b114.png)

How could I configure the settings so that the image shown will contain initials (JD) rather than the first two characters (JO) ?

Thanks in advance.

---

<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:** [December 15, 2021, 8:42pm UTC](https://community.auth0.com/t/default-profile-image-isnt-using-name-field-initials/74945/3 "2021-12-15T20:42:10Z")

</div>

Hi @Otis,

Welcome to the Auth0 Community!

> [@Otis](#):
>
> How could I configure the settings so that the image shown will contain initials (JD) rather than the first two characters (JO) ?

First, I want to clarify that users created with the _name_ property on the Management API are the only way for the user picture to show the initials.

Users created without the _name_ property or users who sign up by themselves will find the same observations as you, where the first two letters are used as the user picture.

Now, I’d like to emphasize that the picture associated with the user profile is an image generated by Gravatar of their initials. Thus, changing the picture from JO to JD will mean replacing the image, which you’ll have to find the source.

In this case, I’d recommend that you create your users with the _name_ attribute with the Management API to accomplish the correct initialed user picture.

Similarly, when users sign up on your application, you’ll need to have _additionalSignUpFields_ for the _name_ attribute:

```auto
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
  additionalSignUpFields: [{
    name: "name",
    placeholder: "Enter your full name",
    storage: "root"
  }],
  // redacted for brevity

```

Once that is complete, the picture generated will always be the initials of the user.

Our [Lock Configuration Options](https://auth0.com/docs/libraries/lock/lock-configuration#additionalsignupfields-array-) goes in greater detail on how to configure the _additionalSignUpFields_.

Hoped this helps!

Please let me know if there’s anything else I can do to help.

Thank you.

---

<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:** [December 30, 2021, 8:42pm UTC](https://community.auth0.com/t/default-profile-image-isnt-using-name-field-initials/74945/4 "2021-12-30T20:42:48Z")

</div>

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