> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Clarify: Get Users

> List users. Clarify Get Users reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List users.

> [!NOTE]
>
> Tool ID: `clarify_get_users`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clarify_get_users',
  {
    "workspace": "example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_get_users --input '{
  "workspace": "example"
}'
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe clarify_get_users --json` for the complete live contract.

## Input reference

Returns the workspace’s users as a paginated JSON:API list. Each user includes their roles.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.page` | `object` | No | `&#123;"offset":0,"limit":500&#125;` | Offset pagination, e.g. `page[offset]=0&page[limit]=100`. |
| `payload.sortOrder` | `object` | No | — | Sort order, e.g. `sortOrder[column]=_created_at&sortOrder[dir]=DESC`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns the workspace’s users as a paginated JSON:API list. Each user includes their roles.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "page": {
        "type": "object",
        "description": "Offset pagination, e.g. `page[offset]=0&page[limit]=100`.",
        "default": {
          "offset": 0,
          "limit": 500
        },
        "properties": {
          "offset": {
            "type": "number",
            "description": "The number of records to skip before the first result.",
            "default": 0,
            "minimum": 0
          },
          "limit": {
            "type": "number",
            "description": "The maximum number of records to return per page (up to 500).",
            "default": 500,
            "minimum": 1,
            "maximum": 500
          }
        },
        "additionalProperties": false
      },
      "sortOrder": {
        "type": "object",
        "description": "Sort order, e.g. `sortOrder[column]=_created_at&sortOrder[dir]=DESC`.",
        "properties": {
          "column": {
            "type": "string",
            "description": "The field name to sort by.",
            "minLength": 1
          },
          "dir": {
            "type": "string",
            "description": "The sort direction.",
            "enum": [
              "ASC",
              "DESC"
            ]
          }
        },
        "required": [
          "column",
          "dir"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "workspace"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.links` | `object` | Yes | — | Pagination links. |
| `result.data.links.next` | `string \| null` | Yes | — | URL of the next page, or `null` on the last page. |
| `result.data.links.prev` | `string \| null` | Yes | — | URL of the previous page, or `null` on the first page. |
| `result.data.meta` | `object` | Yes | — | Pagination metadata. |
| `result.data.meta.total_records` | `number` | Yes | — | Total number of records across all pages. |
| `result.data.meta.total_pages` | `number` | Yes | — | Total number of pages at the current page size. |
| `result.data.data` | `array` | Yes | — | The page of resources. |
| `result.data.data[].type` | `"user"` | Yes | — | The resource type. matches the `object` path parameter. Allowed: `user`. |
| `result.data.data[].id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.data[].attributes` | `object` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.data[].attributes._id` | `string` | Yes | — | The unique ID of the user. |
| `result.data.data[].attributes.name` | `object` | Yes | — | The user’s name. |
| `result.data.data[].attributes.name.first_name` | `string` | Yes | — | The user’s first name. |
| `result.data.data[].attributes.name.last_name` | `string` | Yes | — | The user’s last name. |
| `result.data.data[].attributes.name.full_name` | `string` | No | — | The user’s full name (first and last combined). |
| `result.data.data[].attributes.roles` | `object` | Yes | — | The user’s workspace role, as a single-element array. Humans are `admin` or `member`. `super_admin` is reserved for the seeded system service account. |
| `result.data.data[].attributes.roles.items` | `array` | Yes | — | The user’s role, as a single-element array. Minimum items: 1. Maximum items: 1. |
| `result.data.data[].attributes.email` | `string \| null` | No | — | The user’s email address. |
| `result.data.data[].attributes.profile_picture` | `string` | No | — | A URL to the user’s profile picture. |
| `result.data.data[].attributes.is_service_account` | `boolean` | No | — | Server-derived. True for a non-human service account (an account with no identity provider). Read-only. Not a stored column. |
| `result.data.data[].attributes._created_at` | `string \| object` | Yes | — | The time the user was added to the workspace. |
| `result.data.data[].attributes._updated_at` | `string \| object` | Yes | — | The time the user record was last updated. |
| `result.data.data[].attributes.last_active_at` | `string \| object \| null` | No | — | The time the user was last active, derived from the later of their most recent sign-in or API key usage. |
| `result.data.data[].relationships` | `object` | No | — | Related resources keyed by relationship name, present when requested via `include`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "links": {
            "type": "object",
            "description": "Pagination links.",
            "properties": {
              "next": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "URL of the next page, or `null` on the last page."
              },
              "prev": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "URL of the previous page, or `null` on the first page."
              }
            },
            "required": [
              "next",
              "prev"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "description": "Pagination metadata.",
            "properties": {
              "total_records": {
                "type": "number",
                "description": "Total number of records across all pages."
              },
              "total_pages": {
                "type": "number",
                "description": "Total number of pages at the current page size."
              }
            },
            "required": [
              "total_records",
              "total_pages"
            ],
            "additionalProperties": false
          },
          "data": {
            "type": "array",
            "description": "The page of resources.",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "The resource type; matches the `object` path parameter.",
                  "enum": [
                    "user"
                  ]
                },
                "id": {
                  "type": "string",
                  "description": "The unique ID of the resource."
                },
                "attributes": {
                  "type": "object",
                  "description": "Field values keyed by field name; available fields depend on the object’s schema.",
                  "properties": {
                    "_id": {
                      "type": "string",
                      "description": "The unique ID of the user."
                    },
                    "name": {
                      "type": "object",
                      "description": "The user’s name.",
                      "properties": {
                        "first_name": {
                          "type": "string",
                          "description": "The user’s first name."
                        },
                        "last_name": {
                          "type": "string",
                          "description": "The user’s last name."
                        },
                        "full_name": {
                          "type": "string",
                          "description": "The user’s full name (first and last combined)."
                        }
                      },
                      "required": [
                        "first_name",
                        "last_name"
                      ],
                      "additionalProperties": false
                    },
                    "roles": {
                      "type": "object",
                      "description": "The user’s workspace role, as a single-element array. Humans are `admin` or `member`; `super_admin` is reserved for the seeded system service account.",
                      "properties": {
                        "items": {
                          "type": "array",
                          "description": "The user’s role, as a single-element array.",
                          "minItems": 1,
                          "maxItems": 1,
                          "items": {
                            "type": "string",
                            "enum": [
                              "super_admin",
                              "admin",
                              "member"
                            ]
                          }
                        }
                      },
                      "required": [
                        "items"
                      ],
                      "additionalProperties": false
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The user’s email address."
                    },
                    "profile_picture": {
                      "type": "string",
                      "description": "A URL to the user’s profile picture."
                    },
                    "is_service_account": {
                      "type": "boolean",
                      "description": "Server-derived. True for a non-human service account (an account with no identity provider). Read-only; not a stored column."
                    },
                    "_created_at": {
                      "description": "The time the user was added to the workspace.",
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": false
                        }
                      ]
                    },
                    "_updated_at": {
                      "description": "The time the user record was last updated.",
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": false
                        }
                      ]
                    },
                    "last_active_at": {
                      "description": "The time the user was last active, derived from the later of their most recent sign-in or API key usage.",
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "_id",
                    "name",
                    "roles",
                    "_created_at",
                    "_updated_at"
                  ],
                  "additionalProperties": false
                },
                "relationships": {
                  "type": "object",
                  "description": "Related resources keyed by relationship name, present when requested via `include`.",
                  "properties": {},
                  "additionalProperties": false
                }
              },
              "required": [
                "type",
                "id",
                "attributes"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "links",
          "meta",
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.