{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/esri/json-schema/esri-user-schema.json",
  "title": "User",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/esri-portal-api-openapi.yml#/components/schemas/User",
  "type": "object",
  "properties": {
    "username": {
      "type": "string"
    },
    "fullName": {
      "type": "string"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "description": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "org_admin",
        "org_publisher",
        "org_user",
        "account_admin"
      ]
    },
    "level": {
      "type": "string"
    },
    "created": {
      "type": "integer"
    },
    "modified": {
      "type": "integer"
    },
    "groups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GroupRef"
      }
    }
  },
  "$defs": {
    "GroupRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "access": {
          "type": "string"
        }
      }
    }
  }
}