{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-create-user-request-schema.json",
  "title": "CreateUserRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-scim-api-openapi.yml#/components/schemas/CreateUserRequest",
  "type": "object",
  "properties": {
    "active": {
      "type": "boolean"
    },
    "displayName": {
      "type": "string"
    },
    "emails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScimEmail"
      }
    },
    "externalId": {
      "type": "string"
    },
    "name": {
      "$ref": "#/$defs/ScimName"
    },
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "userName": {
      "type": "string"
    }
  },
  "required": [
    "schemas",
    "emails"
  ],
  "$defs": {
    "ScimEmail": {
      "type": "object",
      "properties": {
        "display": {
          "type": "string"
        },
        "primary": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "value"
      ]
    },
    "ScimName": {
      "type": "object",
      "properties": {
        "familyName": {
          "type": "string"
        },
        "givenName": {
          "type": "string"
        }
      },
      "title": "name"
    }
  }
}