{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-search-users-request-schema.json",
  "title": "SearchUsersRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-directory-service-users-api-openapi.yml#/components/schemas/SearchUsersRequest",
  "type": "object",
  "properties": {
    "DirectoryId": {
      "type": "string",
      "description": "The identifier (ID) of the directory that's associated with the user."
    },
    "Realm": {
      "type": "string",
      "description": "The domain name that's associated with the user. This parameter is optional, so you can return users outside of your Managed Microsoft AD domain. When no value is defined, only your Managed Microsoft AD users are returned. This value is case insensitive."
    },
    "SearchString": {
      "type": "string",
      "description": "The attribute value that you want to search for. Wildcard (*) searches aren't supported. For a list of supported attributes, see Directory Service Data Attributes."
    },
    "SearchAttributes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "One or more data attributes that are used to search for a user. For a list of supported attributes, see Directory Service Data Attributes."
    },
    "NextToken": {
      "type": "string",
      "description": "An encoded paging token for paginated calls that can be passed back to retrieve the next page."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of results to be returned per request."
    }
  },
  "required": [
    "DirectoryId",
    "SearchString",
    "SearchAttributes"
  ]
}