# Have username in userinfo response

**URL:** <https://community.auth0.com/t/have-username-in-userinfo-response/36539>\
**Category:** Get Help\
**Created:** [January 18, 2020, 7:53am UTC](https://community.auth0.com/t/have-username-in-userinfo-response/36539 "2020-01-18T07:53:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simpleauthority](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/simpleauthority/32/18587_2.png) [@simpleauthority](https://community.auth0.com/u/simpleauthority)\
**Post date:** [January 18, 2020, 7:53am UTC](https://community.auth0.com/t/have-username-in-userinfo-response/36539/1 "2020-01-18T07:53:54Z")

</div>

Is it possible to have the `username` of a user in the `userinfo` response? Right now there is `nickname` which is what comes before the `@` in the email, then `name` which is the email, and `email` which is the email.

I’ve set `requires username` in the connection, and I’d like to get it in the userinfo response so I can use the proper username immediately.

Can you help me with that? Thanks.

---

<div class="post-metadata">

**Author:** ![aniquepetit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aniquepetit/32/18446_2.png) [@aniquepetit](https://community.auth0.com/u/aniquepetit)\
**Post date:** [January 18, 2020, 8:02am UTC](https://community.auth0.com/t/have-username-in-userinfo-response/36539/2 "2020-01-18T08:02:56Z")

</div>

[Aniquepetit@hotmail.com](mailto:Aniquepetit@hotmail.com)  
Cant get throught passphrase i lost it

---

<div class="post-metadata">

**Author:** ![simpleauthority](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/simpleauthority/32/18587_2.png) [@simpleauthority](https://community.auth0.com/u/simpleauthority)\
**Post date:** [January 19, 2020, 9:27pm UTC](https://community.auth0.com/t/have-username-in-userinfo-response/36539/3 "2020-01-19T21:27:50Z")

</div>

I decided to make a new microservice that communicates with the management api via a M2M application and not use the provided userinfo endpoint. This way, I can decide which fields I want and account field edits in a controlled and authenticated manner.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 20, 2020, 8:23am UTC](https://community.auth0.com/t/have-username-in-userinfo-response/36539/4 "2020-01-20T08:23:08Z")

</div>

Thanks a lot for sharing it with the rest of community!

---

<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:** [February 4, 2020, 8:23am UTC](https://community.auth0.com/t/have-username-in-userinfo-response/36539/5 "2020-02-04T08:23:11Z")

</div>

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