{
  "$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-user-detail-response-schema.json",
  "title": "UserDetailResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-api-ui-v2-me-api-openapi.yml#/components/schemas/UserDetailResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "readOnly": true
    },
    "username": {
      "type": "string",
      "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": "string",
      "readOnly": true
    },
    "teams": {
      "type": "string",
      "readOnly": true
    },
    "organizations": {
      "type": "string",
      "readOnly": true
    },
    "date_joined": {
      "type": "string",
      "format": "date-time"
    },
    "is_superuser": {
      "type": "boolean",
      "title": "Superuser status",
      "description": "Designates that this user has all permissions without explicitly assigning them."
    },
    "resource": {
      "type": "string",
      "readOnly": true
    }
  },
  "required": [
    "username"
  ]
}