Unable to find users by id

I am able to use the management user API to find users by email and list users. However when I use the API to get a single user by id, it gives me the following error

    "statusCode": 404,
    "error": "Not Found",
    "message": "The user does not exist.",
    "errorCode": "inexistent_user"

I am using the GET /api/v2/users endpoint and providing the id as /{auth0|xxxxxxxxx}

Any idea what I could be doing wrong?

Hi @araje

Welcome back to the Auth0 Community!

Can you confirm for me if you can fetch user data here. Due to URL encoding, the "|" sign is changed into "%7C", so the URL would look like {connection}%7C{user_id}.

If you found this post helpful or interesting, please give it a like :+1: . Your interaction makes a difference. Have a wonderful day! :sun_with_face:


:video_camera: Prefer how-to videos instead of written docs? We’ve got you covered! Check out our OktaDev YouTube channel for those helpful resources!

1 Like

yes the url encoding was the problem. Thanks!

1 Like

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