# Cannot update username for users without a username already set

**URL:** <https://community.auth0.com/t/cannot-update-username-for-users-without-a-username-already-set/8403>\
**Category:** Get Help\
**Tags:** tier1, username\
**Created:** [October 6, 2017, 6:15am UTC](https://community.auth0.com/t/cannot-update-username-for-users-without-a-username-already-set/8403 "2017-10-06T06:15:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![john5](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john5/32/3590_2.png) [@john5](https://community.auth0.com/u/john5)\
**Post date:** [October 6, 2017, 6:15am UTC](https://community.auth0.com/t/cannot-update-username-for-users-without-a-username-already-set/8403/1 "2017-10-06T06:15:28Z")

</div>

This API ([Management API Reference - Auth0 Docs](https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id)) does not allow setting a username on an existing user profile that did not initially have username set. (The API returns a 400 with error message “Cannot update username for users without an username already set” if you try to.)

We initially had users sign up with just email/password. Having now toggled “Requires username”, and given this API restriction, how else should we backfill the username?

Related GH issue: [Cannot update username for users · Issue #343 · auth0/wordpress · GitHub](https://github.com/auth0/wp-auth0/issues/343)

---

<div class="post-metadata">

**Author:** ![swapna.dixit](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@swapna.dixit](https://community.auth0.com/u/swapna.dixit)\
**Post date:** [October 6, 2017, 1:42pm UTC](https://community.auth0.com/t/cannot-update-username-for-users-without-a-username-already-set/8403/2 "2017-10-06T13:42:05Z")

</div>

Unfortunately this is currently a limitation of our system. Though this request would be taken care of in the future, as of now updating the user’s username for this use case cannot be done.

A potential solution, albeit a little inconvenient, would be to backup a user’s metadata and any other information, delete it, and re-create the account with a username.

---

<div class="post-metadata">

**Author:** ![swapna.dixit](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@swapna.dixit](https://community.auth0.com/u/swapna.dixit)\
**Post date:** [October 6, 2017, 1:42pm UTC](https://community.auth0.com/t/cannot-update-username-for-users-without-a-username-already-set/8403/3 "2017-10-06T13:42:05Z")

</div>

Unfortunately this is currently a limitation of our system. Though this request would be taken care of in the future, as of now updating the user’s username for this use case cannot be done.

A potential solution, albeit a little inconvenient, would be to backup a user’s metadata and any other information, delete it, and re-create the account with a username.

---

<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:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/cannot-update-username-for-users-without-a-username-already-set/8403/4 "2018-03-02T05:56:51Z")

</div>


