# {"statusCode":401,"error":"Unauthorized","message":"Missing authentication"}

**URL:** <https://community.auth0.com/t/statuscode-401-error-unauthorized-message-missing-authentication/96078>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [December 9, 2022, 12:38am UTC](https://community.auth0.com/t/statuscode-401-error-unauthorized-message-missing-authentication/96078 "2022-12-09T00:38:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.martinez2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.martinez2/32/33194_2.png) [@david.martinez2](https://community.auth0.com/u/david.martinez2)\
**Post date:** [December 9, 2022, 12:38am UTC](https://community.auth0.com/t/statuscode-401-error-unauthorized-message-missing-authentication/96078/1 "2022-12-09T00:38:52Z")

</div>

Hi, im trying to change an users password directly calling the management api by using [Change Users' Passwords](https://auth0.com/docs/authenticate/database-connections/password-change#use-the-management-api) but when i send that info i get the 401 error, and dont know if the grants are the problem(i saw client credentials were useful but to activate this option i have to change the application type and configure a Token Endpoint Authentication Method, is this really usefull?)  
Your support would be really appreciated.

---

<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:** [December 9, 2022, 1:16am UTC](https://community.auth0.com/t/statuscode-401-error-unauthorized-message-missing-authentication/96078/2 "2022-12-09T01:16:33Z")

</div>

Hey there @david.martinez2 welcome to the community!

I assume you are making a call to the [update user endpoint](https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id). Are you including a Management API Access Token in the request? This is required to complete such a request. I recommend checking out the following doc regarding how to get Management API Access tokens:

[https://auth0.com/docs/secure/tokens/access-tokens/management-api-access-tokens#get-management-api-tokens](https://auth0.com/docs/secure/tokens/access-tokens/management-api-access-tokens#get-management-api-tokens)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![david.martinez2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.martinez2/32/33194_2.png) [@david.martinez2](https://community.auth0.com/u/david.martinez2)\
**Post date:** [December 9, 2022, 3:36am UTC](https://community.auth0.com/t/statuscode-401-error-unauthorized-message-missing-authentication/96078/4 "2022-12-09T03:36:03Z")

</div>

i DM you with the specific issue.

---

<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:** [December 22, 2022, 11:57pm UTC](https://community.auth0.com/t/statuscode-401-error-unauthorized-message-missing-authentication/96078/5 "2022-12-22T23:57:45Z")

</div>


