# Filter Users

## Filter Users

<mark style="color:blue;">`POST`</mark> `https://ext-v2.smarttask.io/v1.0/organization-user/filter-users/{organization_id}?query={query}&page_no={page_no}&list_size={list_size}`

#### Path Parameters

| Name             | Type   | Description                        |
| ---------------- | ------ | ---------------------------------- |
| organization\_id | number | OrganizationId to fetch users from |

#### Query Parameters

| Name       | Type   | Description                                                                 |
| ---------- | ------ | --------------------------------------------------------------------------- |
| query      | string | The API will do its best to find a user matching the provided query string. |
| page\_no   | number | Page Number                                                                 |
| list\_size | number | Cannot be greater than 100                                                  |

#### Headers

| Name          | Type   | Description  |
| ------------- | ------ | ------------ |
| Authorization | string | Bearer token |

#### Request Body

* Array of except\_user\_ids
* Eg: \[ 1, 2]

#### Response Body

{% tabs %}
{% tab title="200 Users successfully retrieved." %}

```
[
    {
        full_name: "Alex Macmohan";
        email: "alex@awesome.com";
        user_id: 1;
        role: "core";
        avatar_url: "https://someurl.png";
    }
]

```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.smarttask.io/endpoints/user/search-users.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
