# Is it possible to change the "name" in a post login action?

**URL:** <https://community.auth0.com/t/is-it-possible-to-change-the-name-in-a-post-login-action/105725>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [April 28, 2023, 9:27am UTC](https://community.auth0.com/t/is-it-possible-to-change-the-name-in-a-post-login-action/105725 "2023-04-28T09:27:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon\_s](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jon_s/32/45008_2.png) [@jon\_s](https://community.auth0.com/u/jon_s)\
**Post date:** [April 28, 2023, 9:27am UTC](https://community.auth0.com/t/is-it-possible-to-change-the-name-in-a-post-login-action/105725/1 "2023-04-28T09:27:36Z")

</div>

We have a post login redirect action that gathers some extra info from our users, including their full name. We would like this name to be in the “name” field for auth0 (not in the user\_metadata object), as we would like to share it instantly with other apps that use SSO with this account. Is it possible to do this using our post login action? From what I can tell we only have access to setUserMetadata or setAppMetadata

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 28, 2023, 11:57pm UTC](https://community.auth0.com/t/is-it-possible-to-change-the-name-in-a-post-login-action/105725/3 "2023-04-28T23:57:56Z")

</div>

Hey there @jon_s !

> [@jon\_s](#):
>
> Is it possible to do this using our post login action? From what I can tell we only have access to setUserMetadata or setAppMetadata

Yes, however it’s not exactly straightforward considering it requires using a [Management API Access Token](https://auth0.com/docs/secure/tokens/access-tokens/management-api-access-tokens) to update a user’s name.

Put simply, you’d need to proxy the request to the Managment API to update the user’s `name` via a backend or similar:

[https://community.auth0.com/t/how-can-i-enable-users-to-change-their-email-address-from-a-spa-or-native-app/44064](https://community.auth0.com/t/how-can-i-enable-users-to-change-their-email-address-from-a-spa-or-native-app/44064)

Hope this helps!

---

<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:** [May 12, 2023, 11:58pm UTC](https://community.auth0.com/t/is-it-possible-to-change-the-name-in-a-post-login-action/105725/4 "2023-05-12T23:58:22Z")

</div>

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