# Management API Client Grants allow current user to update only themselves

**URL:** <https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987>\
**Category:** Get Help\
**Tags:** api, user\
**Created:** [November 30, 2021, 3:59pm UTC](https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987 "2021-11-30T15:59:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bogdanmihalskiy002](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bogdanmihalskiy002/32/33355_2.png) [@bogdanmihalskiy002](https://community.auth0.com/u/bogdanmihalskiy002)\
**Post date:** [November 30, 2021, 3:59pm UTC](https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987/1 "2021-11-30T15:59:21Z")

</div>

Is there a way to allow user to update ONLY themselves, using management api?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 30, 2021, 5:41pm UTC](https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987/3 "2021-11-30T17:41:42Z")

</div>

Hi @bogdanmihalskiy002,

Welcome to the Auth0 Community!

> [@bogdanmihalskiy002](#):
>
> Is there a way to allow user to update ONLY themselves, using management api?

Yes, when using the [Management API v2 update a user endpoint](https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id), you could pass the user\_id to update for a specific user.

To allow users to update themselves, you could have a scenario where the user logs in, and you use the access token to find the user’s user\_id from the `sub` claim (whom the token refers to). Then you’ll be able to pass that user\_id to the Management API when updating the user.

Hoped this helps!

Please let me know if you have any questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![bogdanmihalskiy002](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bogdanmihalskiy002/32/33355_2.png) [@bogdanmihalskiy002](https://community.auth0.com/u/bogdanmihalskiy002)\
**Post date:** [November 30, 2021, 5:47pm UTC](https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987/4 "2021-11-30T17:47:59Z")

</div>

What i meant was is there a way to generate management api token, with permission to edit only 1 specific user?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 30, 2021, 6:38pm UTC](https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987/5 "2021-11-30T18:38:04Z")

</div>

Hi @bogdanmihalskiy002,

Unfortunately, you’ll not be able to generate a Management API token with permission to update only one specific user.

The Management API token includes the `update:users` scope that grants the permission to update any user.

Thank you.

---

<div class="post-metadata">

**Author:** ![bogdanmihalskiy002](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bogdanmihalskiy002/32/33355_2.png) [@bogdanmihalskiy002](https://community.auth0.com/u/bogdanmihalskiy002)\
**Post date:** [November 30, 2021, 6:42pm UTC](https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987/6 "2021-11-30T18:42:15Z")

</div>

Is there any way to edit user data without Management api or dashboard?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 30, 2021, 8:48pm UTC](https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987/7 "2021-11-30T20:48:08Z")

</div>

Hi @bogdanmihalskiy002,

> [@bogdanmihalskiy002](#):
>
> Is there any way to edit user data without Management api or dashboard?

No, unfortunately, there isn’t an alternative way to update a user. You will need to use either the Management API or Auth0 Dashboard to update a user.

Please let me know if there’s anything else I can do to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![bogdanmihalskiy002](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bogdanmihalskiy002/32/33355_2.png) [@bogdanmihalskiy002](https://community.auth0.com/u/bogdanmihalskiy002)\
**Post date:** [December 1, 2021, 3:57pm UTC](https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987/9 "2021-12-01T15:57:46Z")

</div>

Thank you for your help

---

<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:** [December 16, 2021, 3:57pm UTC](https://community.auth0.com/t/management-api-client-grants-allow-current-user-to-update-only-themselves/73987/10 "2021-12-16T15:57:56Z")

</div>

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