# Get a specific user instead of all the user in get request

**URL:** <https://discourse.getcockpit.com/t/get-a-specific-user-instead-of-all-the-user-in-get-request/2116>\
**Category:** Uncategorized\
**Created:** [October 23, 2021, 5:54pm UTC](https://discourse.getcockpit.com/t/get-a-specific-user-instead-of-all-the-user-in-get-request/2116 "2021-10-23T17:54:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![valentijnkap](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/valentijnkap/32/945_2.png) [@valentijnkap](https://discourse.getcockpit.com/u/valentijnkap)\
**Post date:** [October 23, 2021, 5:54pm UTC](https://discourse.getcockpit.com/t/get-a-specific-user-instead-of-all-the-user-in-get-request/2116/1 "2021-10-23T17:54:45Z")

</div>

Hello guys,

I am looking into the cockpit cms and it looks very clean and overall good documentation. But there is one main part that I am missing. How can I get just one user from `http://custom-domain.test/api/cockpit/listUsers`? For example: In a collection I have a linked-account field that returns the user id. How can I access that user via ID on the API request? I don’t believe this is not possible in Cockpit. Can anyone show me how to do this?

(Ofcourse I have been searching the internet)

---

<div class="post-metadata">

**Author:** ![valentijnkap](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/valentijnkap/32/945_2.png) [@valentijnkap](https://discourse.getcockpit.com/u/valentijnkap)\
**Post date:** [October 23, 2021, 6:05pm UTC](https://discourse.getcockpit.com/t/get-a-specific-user-instead-of-all-the-user-in-get-request/2116/2 "2021-10-23T18:05:09Z")

</div>

Oké, I found the solution for this. Some of you knew this ofcourse… But to filter on users by id is very simple. Simply add the parameter `filter[key]` on the request. I tried this before but did it not correctly. In my case I have to do:

`http://custom-domain.test/api/cockpit/listUsers?filter[_id]=cb69e6a5636639426100007e`
