# Unable to find users by id

**URL:** <https://community.auth0.com/t/unable-to-find-users-by-id/115105>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [August 31, 2023, 10:25am UTC](https://community.auth0.com/t/unable-to-find-users-by-id/115105 "2023-08-31T10:25:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![araje](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/araje/32/45642_2.png) [@araje](https://community.auth0.com/u/araje)\
**Post date:** [August 31, 2023, 10:25am UTC](https://community.auth0.com/t/unable-to-find-users-by-id/115105/1 "2023-08-31T10:25:27Z")

</div>

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

```auto
 {
    "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?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [August 31, 2023, 1:13pm UTC](https://community.auth0.com/t/unable-to-find-users-by-id/115105/2 "2023-08-31T13:13:42Z")

</div>

Hi @araje

Welcome back to the Auth0 Community!

Can you confirm for me if you can fetch user data [here](https://auth0.com/docs/api/management/v2/users/get-users-by-id). 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 👍 . Your interaction makes a difference. **Have a wonderful day!** 🌞

Dawid

* * *

[📹 _Prefer how-to videos instead of written docs? We’ve got you covered! Check out our OktaDev YouTube channel for those helpful resources!_](https://www.youtube.com/@OktaDev/videos)

---

<div class="post-metadata">

**Author:** ![araje](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/araje/32/45642_2.png) [@araje](https://community.auth0.com/u/araje)\
**Post date:** [August 31, 2023, 1:25pm UTC](https://community.auth0.com/t/unable-to-find-users-by-id/115105/3 "2023-08-31T13:25:36Z")

</div>

> [@dawid.matuszczyk](#):
>
> %7C

yes the url encoding was the problem. Thanks!

---

<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:** [September 14, 2023, 1:26pm UTC](https://community.auth0.com/t/unable-to-find-users-by-id/115105/4 "2023-09-14T13:26:23Z")

</div>

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