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

# List users

> Lists your organization's current members, in the order they joined.

**Each member includes**
- Their name and email, with the same ID as the `user` analytics breakdown, `/chats`, and `/workflow-runs`
- When they joined your organization
- Their roles and groups

Filter by user ID, email, group, or role. Page through results with `cursor`.

People who have left your organization aren't listed, so older analytics and records can name users that this list doesn't return.

Requires the Members permission (`members:read`).



## OpenAPI

````yaml /admin-api-openapi.json get /users
openapi: 3.1.1
info:
  title: Cassidy Admin API
  description: Read your organization's usage analytics and activity in Cassidy.
  version: 1.0.0
servers:
  - url: https://app.cassidyai.com/api/admin/v1
security: []
tags:
  - name: Analytics
    description: >-
      Usage totals over time, or broken down by user, group, Agent, Workflow,
      source, or plugin.
  - name: Workflow runs
    description: Individual Workflow runs, with who started them and their status.
  - name: Chats
    description: Agent chats, with who started them and the Agent they used.
  - name: Meetings
    description: >-
      Meetings recorded by the Cassidy notetaker, with their owners and
      participants.
  - name: Knowledge Base
    description: Knowledge Base collections, folders, and files.
  - name: Users
    description: Your organization's members, with their roles and groups.
  - name: Groups
    description: Your organization's groups.
  - name: Audit logs
    description: Audit log events for activity in your organization.
externalDocs:
  url: https://docs.cassidyai.com/reference/admin-api
paths:
  /users:
    get:
      tags:
        - Users
      summary: List users
      description: >-
        Lists your organization's current members, in the order they joined.


        **Each member includes**

        - Their name and email, with the same ID as the `user` analytics
        breakdown, `/chats`, and `/workflow-runs`

        - When they joined your organization

        - Their roles and groups


        Filter by user ID, email, group, or role. Page through results with
        `cursor`.


        People who have left your organization aren't listed, so older analytics
        and records can name users that this list doesn't return.


        Requires the Members permission (`members:read`).
      operationId: listUsers
      parameters:
        - in: query
          name: limit
          schema:
            description: Maximum number of records to return.
            default: 100
            type: integer
            minimum: 1
            maximum: 1000
          description: Maximum number of records to return.
        - in: query
          name: cursor
          schema:
            description: The `nextCursor` from the previous page.
            type: string
          description: The `nextCursor` from the previous page.
        - in: query
          name: userIds
          schema:
            description: >-
              Only list these users, using the IDs from the `user` breakdown,
              `/chats`, or `/workflow-runs`. Users who have left your
              organization aren't returned. Pass up to 100 as a comma-separated
              list.
            minItems: 1
            maxItems: 100
            type: array
            items:
              type: string
          description: >-
            Only list these users, using the IDs from the `user` breakdown,
            `/chats`, or `/workflow-runs`. Users who have left your organization
            aren't returned. Pass up to 100 as a comma-separated list.
          style: form
          explode: false
        - in: query
          name: email
          schema:
            description: Only return the member with this email, ignoring case.
            type: string
          description: Only return the member with this email, ignoring case.
        - in: query
          name: groupId
          schema:
            description: Only list members of this group, using an ID from `/groups`.
            type: string
          description: Only list members of this group, using an ID from `/groups`.
        - in: query
          name: roleId
          schema:
            description: >-
              Only list members with this role, such as `admin` or a custom
              role's ID.
            type: string
          description: >-
            Only list members with this role, such as `admin` or a custom role's
            ID.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  nextCursor:
                    description: >-
                      Pass as `cursor` to get the next page. Null on the last
                      page.
                    type:
                      - string
                      - 'null'
                  users:
                    type: array
                    items:
                      $ref: '#/components/schemas/Member'
                required:
                  - nextCursor
                  - users
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.NOT_FOUND'
        '429':
          description: Too many requests
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              required: true
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.TOO_MANY_REQUESTS'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
      security:
        - bearerAuth:
            - members:read
components:
  schemas:
    Member:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        email:
          type:
            - string
            - 'null'
        joinedAt:
          type: string
          description: When the user joined the organization, as an ISO 8601 timestamp.
        roles:
          type: array
          items:
            $ref: '#/components/schemas/Role'
          description: The member's roles, built-in roles first.
        groups:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
            required:
              - id
              - name
          description: >-
            The groups the member belongs to, with the same IDs as `/groups` and
            the `group` analytics breakdown.
      required:
        - id
        - name
        - email
        - joinedAt
        - roles
        - groups
    error.BAD_REQUEST:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Invalid input data
        code:
          type: string
          description: The error code
          example: BAD_REQUEST
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
      required:
        - message
        - code
      title: Invalid input data error (400)
      description: The error information
      example:
        code: BAD_REQUEST
        message: Invalid input data
        issues: []
    error.UNAUTHORIZED:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Authorization not provided
        code:
          type: string
          description: The error code
          example: UNAUTHORIZED
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
      required:
        - message
        - code
      title: Authorization not provided error (401)
      description: The error information
      example:
        code: UNAUTHORIZED
        message: Authorization not provided
        issues: []
    error.FORBIDDEN:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Insufficient access
        code:
          type: string
          description: The error code
          example: FORBIDDEN
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
      required:
        - message
        - code
      title: Insufficient access error (403)
      description: The error information
      example:
        code: FORBIDDEN
        message: Insufficient access
        issues: []
    error.NOT_FOUND:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Not found
        code:
          type: string
          description: The error code
          example: NOT_FOUND
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
      required:
        - message
        - code
      title: Not found error (404)
      description: The error information
      example:
        code: NOT_FOUND
        message: Not found
        issues: []
    error.TOO_MANY_REQUESTS:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Rate limit exceeded. Retry after the Retry-After interval.
        code:
          type: string
          description: The error code
          example: TOO_MANY_REQUESTS
      required:
        - message
        - code
      title: Too many requests error (429)
      description: The error information
      example:
        code: TOO_MANY_REQUESTS
        message: Rate limit exceeded. Retry after the Retry-After interval.
    error.INTERNAL_SERVER_ERROR:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Internal server error
        code:
          type: string
          description: The error code
          example: INTERNAL_SERVER_ERROR
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
      required:
        - message
        - code
      title: Internal server error error (500)
      description: The error information
      example:
        code: INTERNAL_SERVER_ERROR
        message: Internal server error
        issues: []
    Role:
      type: object
      properties:
        id:
          type: string
          description: >-
            The role's ID: `superAdmin`, `admin`, `member`, `viewer` for
            built-in roles, or the custom role's ID.
        name:
          type: string
        type:
          type: string
          enum:
            - managed
            - custom
          description: >-
            `managed` for Cassidy's built-in roles and `custom` for roles your
            organization created.
      required:
        - id
        - name
        - type
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Admin API key, starting with `cas_admin_`.

````

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