# How to update a user's Name through Management API when passkeys are enabled?

**URL:** <https://community.auth0.com/t/how-to-update-a-users-name-through-management-api-when-passkeys-are-enabled/138381>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [July 8, 2024, 4:57pm UTC](https://community.auth0.com/t/how-to-update-a-users-name-through-management-api-when-passkeys-are-enabled/138381 "2024-07-08T16:57:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdbahnick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jdbahnick/32/58402_2.png) [@jdbahnick](https://community.auth0.com/u/jdbahnick)\
**Post date:** [July 8, 2024, 4:57pm UTC](https://community.auth0.com/t/how-to-update-a-users-name-through-management-api-when-passkeys-are-enabled/138381/1 "2024-07-08T16:57:27Z")

</div>

When trying to update the username via the management API, I get the error about requiring the username for database connections. However, this cannot be set because it needs to be disabled for passkeys. The Name can be changed via the dashboard, but how do I update this value through the API?

---

<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:** [July 8, 2024, 11:05pm UTC](https://community.auth0.com/t/how-to-update-a-users-name-through-management-api-when-passkeys-are-enabled/138381/3 "2024-07-08T23:05:11Z")

</div>

Hey there @jdbahnick !

I am a little confused what attribute you are specifically looking to update - You mention both `name` and `username`. You should be able to update the `name` of the user (same as `email` by default) in the dashboard and using the Management API. The `username` on the other hand will throw the error you’re seeing (`Cannot set username for connection without requires_username or attributes`) - Are you looking to update the `username` or `name`? I do see how there may be an issue under the following circumstances:

- A database connection at one time required a username but has since had passkeys enabled.
- A user that was created prior to passkeys being enabled has a username and you go to update to it via the Management API you’ll get the error above.

Can you clarify your specific issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![jdbahnick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jdbahnick/32/58402_2.png) [@jdbahnick](https://community.auth0.com/u/jdbahnick)\
**Post date:** [July 9, 2024, 1:16pm UTC](https://community.auth0.com/t/how-to-update-a-users-name-through-management-api-when-passkeys-are-enabled/138381/4 "2024-07-09T13:16:18Z")

</div>

My apologies for the confusion. I was confused as well since the record I was viewing in the dashboard had a Name field but no username to be found. I didn’t know if there was some kind of inconsistencies going on with field namings.

> - A user that was created prior to passkeys being enabled has a username and you go to update to it via the Management API you’ll get the error above.

I viewed an older record prior to passkeys being enabled and there was a username present. In a record created post passkeys being enabled, there is no username. However, since I didn’t see this documented anywhere, I was confused.

Thanks for clearing things up for me.

---

<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:** [July 9, 2024, 2:07pm UTC](https://community.auth0.com/t/how-to-update-a-users-name-through-management-api-when-passkeys-are-enabled/138381/5 "2024-07-09T14:07:24Z")

</div>

Gotcha, that makes sense - It’s definitely a bit confusing! Happy to help and thanks for marking as solution 🙂

---

<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:** [July 23, 2024, 2:08pm UTC](https://community.auth0.com/t/how-to-update-a-users-name-through-management-api-when-passkeys-are-enabled/138381/6 "2024-07-23T14:08:03Z")

</div>

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