{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-current-user-schema.json",
  "title": "CurrentUser",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-api-ui-v1-me-api-openapi.yml#/components/schemas/CurrentUser",
  "type": "object",
  "properties": {
    "username": {
      "type": "string",
      "minLength": 1,
      "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
      "pattern": "^[\\w.@+-]+$",
      "maxLength": 150
    },
    "first_name": {
      "type": "string",
      "maxLength": 150
    },
    "last_name": {
      "type": "string",
      "maxLength": 150
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email address",
      "maxLength": 254
    },
    "password": {
      "type": "string",
      "writeOnly": true,
      "maxLength": 128
    },
    "is_superuser": {
      "type": "boolean",
      "title": "Superuser status",
      "description": "Designates that this user has all permissions without explicitly assigning them."
    }
  },
  "required": [
    "username"
  ]
}