/api/v1/configurator/users/search:
  description: |-
    pf::UnifiedApi::Controller::User

      create_data_update
        create_data_update

      cleanup_item
        Remove the password field from the item

      unassign_nodes
        unassign user nodes

      security_events
        security_events

      bulk_register
        bulk_register

      bulk_deregister
        bulk_deregister

      bulk_close_security_events
        bulk_close_security_events

      close_security_events
        close_security_events

      bulk_apply_security_event
        bulk_apply_security_event

      bulk_reevaluate_access
        bulk_reevaluate_access

      bulk_init_results
        bulk_init_results

      bulk_fingerbank_refresh
        bulk_fingerbank_refresh

      do_bulk_update_field
        do_bulk_update_field

      bulk_apply_role
        bulk_apply_role

      bulk_apply_bypass_role
        bulk_apply_bypass_role

      bulk_delete
        bulk_delete

      bulk_import
        bulk_import
  post:
    description: Search all items.
    operationId: api.v1.Configurator.Users.search
    parameters: []
    requestBody:
      content:
        application/json:
          example:
            cursor: 0
            fields:
            - address
            - anniversary
            - apartment_number
            - birthday
            - building_number
            - cell_phone
            - company
            - custom_field_1
            - custom_field_2
            - custom_field_3
            - custom_field_4
            - custom_field_5
            - custom_field_6
            - custom_field_7
            - custom_field_8
            - custom_field_9
            - email
            - firstname
            - gender
            - lang
            - lastname
            - nickname
            - notes
            - otp
            - pid
            - portal
            - potd
            - psk
            - room_number
            - source
            - sponsor
            - sponsored_date
            - telephone
            - title
            - work_phone
            limit: 25
            query:
              op: and
              values:
              - op: or
                values:
                - field: address
                  op: contains
                  value: foo
                - field: anniversary
                  op: contains
                  value: foo
                - field: apartment_number
                  op: contains
                  value: foo
                - field: birthday
                  op: contains
                  value: foo
                - field: building_number
                  op: contains
                  value: foo
                - field: cell_phone
                  op: contains
                  value: foo
                - field: company
                  op: contains
                  value: foo
                - field: custom_field_1
                  op: contains
                  value: foo
                - field: custom_field_2
                  op: contains
                  value: foo
                - field: custom_field_3
                  op: contains
                  value: foo
                - field: custom_field_4
                  op: contains
                  value: foo
                - field: custom_field_5
                  op: contains
                  value: foo
                - field: custom_field_6
                  op: contains
                  value: foo
                - field: custom_field_7
                  op: contains
                  value: foo
                - field: custom_field_8
                  op: contains
                  value: foo
                - field: custom_field_9
                  op: contains
                  value: foo
                - field: email
                  op: contains
                  value: foo
                - field: firstname
                  op: contains
                  value: foo
                - field: gender
                  op: contains
                  value: foo
                - field: lang
                  op: contains
                  value: foo
                - field: lastname
                  op: contains
                  value: foo
                - field: nickname
                  op: contains
                  value: foo
                - field: notes
                  op: contains
                  value: foo
                - field: otp
                  op: contains
                  value: foo
                - field: pid
                  op: contains
                  value: foo
                - field: portal
                  op: contains
                  value: foo
                - field: potd
                  op: contains
                  value: foo
                - field: psk
                  op: contains
                  value: foo
                - field: room_number
                  op: contains
                  value: foo
                - field: source
                  op: contains
                  value: foo
                - field: sponsor
                  op: contains
                  value: foo
                - field: sponsored_date
                  op: contains
                  value: foo
                - field: telephone
                  op: contains
                  value: foo
                - field: title
                  op: contains
                  value: foo
                - field: work_phone
                  op: contains
                  value: foo
            sort:
            - pid ASC
          schema:
            allOf:
            - $ref: '#/components/schemas/Search'
            - properties:
                cursor:
                  required: false
                  type: string
                fields:
                  items:
                    enum:
                    - address
                    - anniversary
                    - apartment_number
                    - birthday
                    - building_number
                    - cell_phone
                    - company
                    - custom_field_1
                    - custom_field_2
                    - custom_field_3
                    - custom_field_4
                    - custom_field_5
                    - custom_field_6
                    - custom_field_7
                    - custom_field_8
                    - custom_field_9
                    - email
                    - firstname
                    - gender
                    - lang
                    - lastname
                    - nickname
                    - notes
                    - otp
                    - pid
                    - portal
                    - potd
                    - psk
                    - room_number
                    - source
                    - sponsor
                    - sponsored_date
                    - telephone
                    - title
                    - work_phone
                    type: string
                  required: true
                  type: array
                limit:
                  maximum: 1000
                  minimum: 1
                  required: false
                  type: integer
                sort:
                  items:
                    enum:
                    - address ASC
                    - address DESC
                    - anniversary ASC
                    - anniversary DESC
                    - apartment_number ASC
                    - apartment_number DESC
                    - birthday ASC
                    - birthday DESC
                    - building_number ASC
                    - building_number DESC
                    - cell_phone ASC
                    - cell_phone DESC
                    - company ASC
                    - company DESC
                    - custom_field_1 ASC
                    - custom_field_1 DESC
                    - custom_field_2 ASC
                    - custom_field_2 DESC
                    - custom_field_3 ASC
                    - custom_field_3 DESC
                    - custom_field_4 ASC
                    - custom_field_4 DESC
                    - custom_field_5 ASC
                    - custom_field_5 DESC
                    - custom_field_6 ASC
                    - custom_field_6 DESC
                    - custom_field_7 ASC
                    - custom_field_7 DESC
                    - custom_field_8 ASC
                    - custom_field_8 DESC
                    - custom_field_9 ASC
                    - custom_field_9 DESC
                    - email ASC
                    - email DESC
                    - firstname ASC
                    - firstname DESC
                    - gender ASC
                    - gender DESC
                    - lang ASC
                    - lang DESC
                    - lastname ASC
                    - lastname DESC
                    - nickname ASC
                    - nickname DESC
                    - notes ASC
                    - notes DESC
                    - otp ASC
                    - otp DESC
                    - pid ASC
                    - pid DESC
                    - portal ASC
                    - portal DESC
                    - potd ASC
                    - potd DESC
                    - psk ASC
                    - psk DESC
                    - room_number ASC
                    - room_number DESC
                    - source ASC
                    - source DESC
                    - sponsor ASC
                    - sponsor DESC
                    - sponsored_date ASC
                    - sponsored_date DESC
                    - telephone ASC
                    - telephone DESC
                    - title ASC
                    - title DESC
                    - work_phone ASC
                    - work_phone DESC
                    type: string
                  required: true
                  type: array
              required:
              - fields
      required: true
    responses:
      '200':
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UsersList'
      '401':
        $ref: '#/components/responses/Forbidden'
      '404':
        $ref: '#/components/responses/BadRequest'
      '409':
        $ref: '#/components/responses/Duplicate'
      '422':
        $ref: '#/components/responses/UnprocessableEntity'
    tags:
    - Users
