# Api /users/username return extra information z2jh

**URL:** <https://discourse.jupyter.org/t/api-users-username-return-extra-information-z2jh/23477>\
**Category:** Zero to JupyterHub on Kubernetes\
**Tags:** jupyterhub\
**Created:** [January 17, 2024, 4:20pm UTC](https://discourse.jupyter.org/t/api-users-username-return-extra-information-z2jh/23477 "2024-01-17T16:20:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpfrd](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/bpfrd/32/10762_2.png) [@bpfrd](https://discourse.jupyter.org/u/bpfrd)\
**Post date:** [January 17, 2024, 4:20pm UTC](https://discourse.jupyter.org/t/api-users-username-return-extra-information-z2jh/23477/1 "2024-01-17T16:20:52Z")

</div>

Hi,

I would like to assign some extra information to `spawner.user` and retrieve it later in the user container by calling the API `/users/username` but the API response contains some default information.  
How can I achieve this?

best

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [January 18, 2024, 5:22pm UTC](https://discourse.jupyter.org/t/api-users-username-return-extra-information-z2jh/23477/2 "2024-01-18T17:22:37Z")

</div>

I don’t think there’s an easy way to extend the user information since it involves modifying the API.

Can you tell us a bit more about what you’re trying to achieve? There may be a better supported way of doing it, e.g. using `auth_state`

> **[Authenticators](https://jupyterhub.readthedocs.io/en/stable/reference/authenticators.html#authentication-state)**
>
> The Authenticator is the mechanism for authorizing users to use the Hub and single user notebook servers. The default PAM Authenticator: JupyterHub ships with the default PAM-based Authenticator, f...

---

<div class="post-metadata">

**Author:** ![bpfrd](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/bpfrd/32/10762_2.png) [@bpfrd](https://discourse.jupyter.org/u/bpfrd)\
**Post date:** [January 19, 2024, 10:45pm UTC](https://discourse.jupyter.org/t/api-users-username-return-extra-information-z2jh/23477/3 "2024-01-19T22:45:46Z")

</div>

Thanks for you reply. I’m actually trying to fix this issue: [Modify course list menu nbgrader (z2jh) - #2 by bpfrd](https://discourse.jupyter.org/t/modify-course-list-menu-nbgrader-z2jh/23453/2)
