# Invited users do not have their names populated after they accept an invitation

**URL:** <https://community.auth0.com/t/invited-users-do-not-have-their-names-populated-after-they-accept-an-invitation/124565>\
**Category:** Get Help\
**Tags:** user-invitation, user-management\
**Created:** [January 10, 2024, 4:54pm UTC](https://community.auth0.com/t/invited-users-do-not-have-their-names-populated-after-they-accept-an-invitation/124565 "2024-01-10T16:54:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![youssef.elkhalili](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@youssef.elkhalili](https://community.auth0.com/u/youssef.elkhalili)\
**Post date:** [January 10, 2024, 4:54pm UTC](https://community.auth0.com/t/invited-users-do-not-have-their-names-populated-after-they-accept-an-invitation/124565/1 "2024-01-10T16:54:44Z")

</div>

Hello,

I had a question around the create organization invitation call in the management API [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/organizations/post-invitations)

We are using this call to invite users to our organizations and noticed that there is no way to supply the name of the user being invited using this call. The invitee property of the body only allows for email and I also tried adding the name as a top-level attribute with no luck.

The side effect to this is when users accept the invitation and sign up, their name is not populated in Auth0 and their email is used instead, this in turn affects the avatar that’s generated for them which creates a less than ideal experience for certain users.

I am considering looking into adding the name in the user\_metadata object and using an Action to populate the name field but wanted to make sure that there is no other way as it seems like an unnecessary workaround.

Thanks.

---

<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:** [January 11, 2024, 12:26am UTC](https://community.auth0.com/t/invited-users-do-not-have-their-names-populated-after-they-accept-an-invitation/124565/3 "2024-01-11T00:26:33Z")

</div>

Hi @youssef.elkhalili,

The scenario you described with the user’s email being used for their name does happen when the user signs up with an Organization through an invitation.

As you have found, using an Action to update the [user’s name field](https://auth0.github.io/node-auth0/classes/management.UsersManager.html#update) is a valid approach. Currently, there isn’t a better way to update the user’s name dynamically.

Please let me know if you have any questions.

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:** [January 25, 2024, 12:27am UTC](https://community.auth0.com/t/invited-users-do-not-have-their-names-populated-after-they-accept-an-invitation/124565/4 "2024-01-25T00:27:17Z")

</div>

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