# Auth0 Management API - Patch request successful but not actually updating user

**URL:** <https://community.auth0.com/t/auth0-management-api-patch-request-successful-but-not-actually-updating-user/183668>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [March 10, 2025, 9:28pm UTC](https://community.auth0.com/t/auth0-management-api-patch-request-successful-but-not-actually-updating-user/183668 "2025-03-10T21:28:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ia-auth0-user](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ia-auth0-user/32/73568_2.png) [@ia-auth0-user](https://community.auth0.com/u/ia-auth0-user)\
**Post date:** [March 10, 2025, 9:28pm UTC](https://community.auth0.com/t/auth0-management-api-patch-request-successful-but-not-actually-updating-user/183668/1 "2025-03-10T21:28:34Z")

</div>

I’ve been noticing this occurring intermittently for two weeks now. When I make a PATCH request to /api/v2/users/{user-id} to update a value in the app\_metadata, I get a successful response along with the updated user info in the response body. This response body does reflect the changes I’m making in the patch. However, when I do a GET to the same user that was patched to get the app\_metadata, the metadata returned is the old, non-updated data. Also, the data is not updated on the user’s page in the management console either. Not sure why this is happening.

A couple of things to note - I’m not immediately making the GET after the PATCH. In my application there is about 2-3 seconds of delay and in testing this manually, a few minutes. I’m not doing any caching on my end. Confirmed the access token is updated and not expired. Scopes are good. I notice this behavior occurs for about 2 hours, and then seems to resolve itself. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [March 11, 2025, 3:49pm UTC](https://community.auth0.com/t/auth0-management-api-patch-request-successful-but-not-actually-updating-user/183668/3 "2025-03-11T15:49:31Z")

</div>

Hi @ia-auth0-user,

Welcome to the Auth0 Community and thank you for your post.

As mentioned in our [public docs](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint), the `GET /api/v2/users` endpoint is **eventually consistent**. This means that search results may not reflect a recently completed write operation. However, if the request is repeated after some period of time, the response will eventually return up-to-date data.

If the expiration time of the access\_token is set to 2 hours, a new access token is returned, so that is why you are experiencing this behavior for only this period of time.

As an alternative for **immediate consistency** you can use this endpoints :

> **[Retrieve Users with Get Users by Email Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-by-email-endpoint)**
>
> Learn how to retrieve lists of users using the get-users-by-email endpoint.

> **[Retrieve Users with the Get Users by ID Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-by-id-endpoint)**
>
> Learn how to retrieve lists of users using the get-users-by-id endpoint.

I hope this helps your use case.  
Best regards,  
Remus

---

<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 25, 2025, 3:50pm UTC](https://community.auth0.com/t/auth0-management-api-patch-request-successful-but-not-actually-updating-user/183668/4 "2025-03-25T15:50:22Z")

</div>

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