{
  "$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-patched-user-schema.json",
  "title": "PatchedUser",
  "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-users-api-openapi.yml#/components/schemas/PatchedUser",
  "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
    },
    "groups": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      },
      "description": "The groups this user belongs to. A user will get all permissions granted to each of their groups."
    },
    "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."
    }
  }
}