Auth0 Home Blog Docs

Management API with inconsistent results

api
management-api

#1

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