{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-search-users-by-image-request-schema.json",
  "title": "SearchUsersByImageRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-user-api-openapi.yml#/components/schemas/SearchUsersByImageRequest",
  "type": "object",
  "properties": {
    "CollectionId": {
      "type": "string",
      "description": "The ID of an existing collection containing the UserID."
    },
    "Image": {
      "$ref": "#/$defs/Image"
    },
    "UserMatchThreshold": {
      "type": "number",
      "description": "Specifies the minimum confidence in the UserID match to return. Default value is 80."
    },
    "MaxUsers": {
      "type": "integer",
      "description": "Maximum number of UserIDs to return."
    },
    "QualityFilter": {
      "type": "string",
      "enum": [
        "NONE",
        "AUTO",
        "LOW",
        "MEDIUM",
        "HIGH"
      ],
      "description": "A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't searched for in the collection. The default value is NONE."
    }
  },
  "required": [
    "CollectionId",
    "Image"
  ],
  "$defs": {
    "Image": {
      "type": "object",
      "properties": {
        "Bytes": {
          "type": "string",
          "format": "byte",
          "description": "Blob of image bytes up to 5 MBs. Note that the maximum image size you can pass to DetectCustomLabels is 4MB."
        },
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    },
    "S3Object": {
      "type": "object",
      "properties": {
        "Bucket": {
          "type": "string",
          "description": "Name of the S3 bucket."
        },
        "Name": {
          "type": "string",
          "description": "S3 object key name."
        },
        "Version": {
          "type": "string",
          "description": "If the bucket is versioning enabled, you can specify the object version."
        }
      }
    }
  }
}