{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-user-schema.json",
  "title": "User",
  "description": "User details.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-provisioning-openapi.yml#/components/schemas/User",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The user's ID."
    },
    "name": {
      "type": "string",
      "description": "The user's name."
    },
    "first_name": {
      "type": "string",
      "description": "The user's first name."
    },
    "last_name": {
      "type": "string",
      "description": "The user's last name."
    },
    "role": {
      "type": "string",
      "description": "The user's role."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "The user's email."
    },
    "pending": {
      "type": "boolean",
      "description": "Whether the user is pending."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the user is enabled."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the user was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the user was last updated."
    },
    "last_login": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the user was last logged in."
    },
    "all_sub_accounts": {
      "type": "boolean"
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of authentication providers for the user."
    },
    "email_preferences": {
      "type": "object",
      "description": "The user's email preferences."
    },
    "account_id": {
      "type": "string",
      "description": "The account ID."
    },
    "two_factor": {
      "type": "boolean",
      "description": "Whether two-factor authentication is enabled."
    },
    "status": {
      "type": "string",
      "description": "The user's status."
    },
    "root": {
      "type": "boolean",
      "description": "Whether the user is a root user."
    },
    "technical_role": {
      "type": "string",
      "description": "The user's technical role."
    },
    "group_count": {
      "type": "integer",
      "description": "The number of groups the user belongs to."
    },
    "sub_account_count": {
      "type": "integer",
      "description": "The number of sub-accounts the user has access to."
    }
  }
}