Management API with inconsistent results

Hi,

I’m using LogRocket to monitor my application activity and upon a user reporting a bug in our UI, I was surprised to see some inconsistencies in the Managment API between the following calls in terms of the app_metadata returned:

https://DOMAIN.auth0.com/api/v2/users/USER_ID returned

    {
    "activation_pending" : false,
    "invitation_sent" : false,
    "role": "Admin"
    }

while
https://DOMAIN.auth0.com/api/v2/users?q=user_id%3D%22USER_ID
returned

    {
    "activation_pending" : true,
    "invitation_sent" : false,
    "role": "Admin"
    }

I can provide the time and date of these calls if necessary but I wondered if I’m doing something wrong? Why are the responses different? Is one method more reliable?

Thanks

Hey Safiyya!

To be honest that’s a kind of strange behaviour! Both ways should be working the same. Do you still get such inconsistencies?

Hi Konrad,

I switched to the v3 search engine and haven’t seen it happen since then. Could it be that the v2 is showing discrepancies?

Perfect then! Not sure if that could be the case for v2 but we’ll definitely investigate it further! Thanks for reporting that!

1 Like

Yep the reason was V2. Search v2 is deprecated, this is why you might get stale results at that point. Sorry for that!

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