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

# List ITSM Users

> List the users who can be assigned tickets in the connected ITSM tool.



## OpenAPI

````yaml get /itsm/users
openapi: 3.1.0
info:
  title: Leen Security API
  version: 0.0.1
servers:
  - description: Production API (US)
    url: https://api.leen.dev/v1
  - description: Production API (EU)
    url: https://api.eu-c1.leen.dev/v1
  - description: Production API (APAC)
    url: https://api.ap-se2.leen.dev/v1
security: []
paths:
  /itsm/users:
    get:
      tags:
        - ITSM
        - Users
      summary: List ITSM Users
      description: List the users who can be assigned tickets in the connected ITSM tool.
      operationId: get_users
      parameters:
        - in: query
          name: name
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Name
        - in: query
          name: status
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/ITSMUserStatus'
              - type: 'null'
            title: Status
        - in: query
          name: includeUserGroups
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            title: Includeusergroups
        - in: query
          name: projectId
          required: false
          schema:
            anyOf:
              - format: uuid
                type: string
              - type: 'null'
            title: Projectid
        - description: >-
            Only records whose `updated_at` is at or after this time. Leen bumps
            `updated_at` whenever any field on a record changes, so this is the
            filter for an incremental sync: it returns records that are new and
            records that changed, and nothing that has stood still. Example:
            `2021-01-01T00:00:00+00:00`.
          in: query
          name: updatedSince
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: >-
              Only records whose `updated_at` is at or after this time. Leen
              bumps `updated_at` whenever any field on a record changes, so this
              is the filter for an incremental sync: it returns records that are
              new and records that changed, and nothing that has stood still.
              Example: `2021-01-01T00:00:00+00:00`.
            examples:
              - '2021-01-01T00:00:00+00:00'
            title: Updatedsince
        - description: >-
            Opaque position of the next page, taken from the previous response.
            Ignore its contents; it encodes where the walk had reached.
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Opaque position of the next page, taken from the previous
              response. Ignore its contents; it encodes where the walk had
              reached.
            title: Cursor
        - description: >-
            How many records to return per page. The walk is the same either
            way; a larger page means fewer round trips and more memory per
            response.
          in: query
          name: limit
          required: false
          schema:
            default: 100
            description: >-
              How many records to return per page. The walk is the same either
              way; a larger page means fewer round trips and more memory per
              response.
            maximum: 500
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/KeySetPaginatedResponse_Union_ITSMUserRespModel__ITSMUserWithGroupsRespModel__
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
      security:
        - API-Key: []
          Connection-ID: []
components:
  schemas:
    ITSMUserStatus:
      enum:
        - ACTIVE
        - INACTIVE
        - DELETED
      title: ITSMUserStatus
      type: string
    KeySetPaginatedResponse_Union_ITSMUserRespModel__ITSMUserWithGroupsRespModel__:
      properties:
        items:
          description: The records on this page.
          items:
            anyOf:
              - $ref: '#/components/schemas/ITSMUserRespModel'
              - $ref: '#/components/schemas/ITSMUserWithGroupsRespModel'
          title: Items
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Opaque position of the next page. Pass it back as `cursor` to
            continue; null when this is the last page.
          title: Next Cursor
        previous_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Opaque position of the previous page, for walking backwards. Null on
            the first page.
          title: Previous Cursor
      required:
        - items
      title: >-
        KeySetPaginatedResponse[Union[ITSMUserRespModel,
        ITSMUserWithGroupsRespModel]]
      type: object
    ErrorResponse:
      properties:
        code:
          description: Error code
          title: Code
          type: string
        detail:
          description: List of error dictionaries
          items:
            additionalProperties: true
            type: object
          title: Detail
          type: array
        message:
          description: Error message
          title: Message
          type: string
        type:
          description: Type of error
          title: Type
          type: string
      required:
        - type
        - code
        - message
        - detail
      title: ErrorResponse
      type: object
    ITSMUserRespModel:
      properties:
        email:
          description: Email of the User
          title: Email
          type: string
        id:
          description: Leen's UUID for the User
          format: uuid
          title: Id
          type: string
        name:
          description: Name of the User
          title: Name
          type: string
        status:
          $ref: '#/components/schemas/ITSMUserStatus'
          description: Status of the User
        vendor_attributes:
          $ref: '#/components/schemas/ITSMUserVendorAttributes'
          description: Vendor-specific attributes of the User
      required:
        - id
        - name
        - email
        - status
        - vendor_attributes
      title: ITSM User
      type: object
    ITSMUserWithGroupsRespModel:
      properties:
        email:
          description: Email of the User
          title: Email
          type: string
        groups:
          description: Groups the User belongs to
          items:
            anyOf:
              - $ref: '#/components/schemas/ScopedITSMGroupRespModel'
              - type: 'null'
          title: Groups
          type: array
        id:
          description: Leen's UUID for the User
          format: uuid
          title: Id
          type: string
        name:
          description: Name of the User
          title: Name
          type: string
        status:
          $ref: '#/components/schemas/ITSMUserStatus'
          description: Status of the User
        vendor_attributes:
          $ref: '#/components/schemas/ITSMUserVendorAttributes'
          description: Vendor-specific attributes of the User
      required:
        - id
        - name
        - email
        - status
        - vendor_attributes
        - groups
      title: ITSM User with Groups
      type: object
    ITSMUserVendorAttributes:
      properties:
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Creation time of the User in Vendor
          title: Created At
        data:
          anyOf:
            - discriminator:
                mapping:
                  JIRA: '#/components/schemas/JiraUserVendorAttributesData'
                  SERVICENOW_ITSM: '#/components/schemas/ServiceNowUserVendorAttributesData'
                propertyName: vendor
              oneOf:
                - $ref: '#/components/schemas/JiraUserVendorAttributesData'
                - $ref: '#/components/schemas/ServiceNowUserVendorAttributesData'
            - type: 'null'
          description: Vendor-specific data associated with the User
          title: Data
        id:
          description: Vendor's UUID for the User
          title: Id
          type: string
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Last update time of the User in Vendor
          title: Updated At
        vendor:
          description: Vendor name
          title: Vendor
          type: string
      required:
        - id
        - vendor
        - created_at
        - updated_at
      title: ITSM User Vendor Attributes
      type: object
    ScopedITSMGroupRespModel:
      properties:
        description:
          description: Description of the Group
          title: Description
          type: string
        id:
          description: Leen's UUID for the Group
          format: uuid
          title: Id
          type: string
        name:
          description: Name of the Group
          title: Name
          type: string
        status:
          description: Status of the Group (e.g., ACTIVE, INACTIVE, DELETED)
          title: Status
          type: string
        vendor_attributes:
          $ref: '#/components/schemas/ITSMGroupVendorAttributes'
          description: Vendor-specific attributes of the Group
      required:
        - id
        - name
        - description
        - status
        - vendor_attributes
      title: ITSM Group
      type: object
    JiraUserVendorAttributesData:
      properties:
        accountType:
          anyOf:
            - type: string
            - type: 'null'
          title: Accounttype
        vendor:
          const: JIRA
          default: JIRA
          title: Vendor
          type: string
      title: JiraUserVendorAttributesData
      type: object
    ServiceNowUserVendorAttributesData:
      properties:
        firstName:
          anyOf:
            - type: string
            - type: 'null'
          title: Firstname
        lastName:
          anyOf:
            - type: string
            - type: 'null'
          title: Lastname
        userName:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
        vendor:
          const: SERVICENOW_ITSM
          default: SERVICENOW_ITSM
          title: Vendor
          type: string
      title: ServiceNowUserVendorAttributesData
      type: object
    ITSMGroupVendorAttributes:
      properties:
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Creation time of the Group in Vendor
          title: Created At
        data:
          anyOf:
            - discriminator:
                mapping:
                  JIRA: '#/components/schemas/JiraGroupVendorAttributesData'
                  SERVICENOW_ITSM: '#/components/schemas/ServiceNowGroupVendorAttributesData'
                propertyName: vendor
              oneOf:
                - $ref: '#/components/schemas/JiraGroupVendorAttributesData'
                - $ref: '#/components/schemas/ServiceNowGroupVendorAttributesData'
            - type: 'null'
          description: Vendor-specific data associated with the Group
          title: Data
        id:
          description: Vendor's ID for the Group
          title: Id
          type: string
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Last update time of the Group in Vendor
          title: Updated At
        vendor:
          description: Vendor name
          title: Vendor
          type: string
      required:
        - id
        - vendor
      title: ITSM Group Vendor Attributes
      type: object
    JiraGroupVendorAttributesData:
      properties:
        vendor:
          const: JIRA
          default: JIRA
          title: Vendor
          type: string
      title: JiraGroupVendorAttributesData
      type: object
    ServiceNowGroupVendorAttributesData:
      properties:
        managerSysId:
          anyOf:
            - type: string
            - type: 'null'
          title: Managersysid
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        vendor:
          const: SERVICENOW_ITSM
          default: SERVICENOW_ITSM
          title: Vendor
          type: string
      title: ServiceNowGroupVendorAttributesData
      type: object
  securitySchemes:
    API-Key:
      in: header
      name: X-API-KEY
      type: apiKey
    Connection-ID:
      in: header
      name: X-CONNECTION-ID
      type: apiKey

````

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