{
  "$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-response-schema.json",
  "title": "CurrentUserResponse",
  "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/CurrentUserResponse",
  "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": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      },
      "readOnly": true,
      "description": "The groups this user belongs to. A user will get all permissions granted to each of their groups."
    },
    "date_joined": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "is_superuser": {
      "type": "boolean",
      "title": "Superuser status",
      "description": "Designates that this user has all permissions without explicitly assigning them."
    },
    "auth_provider": {
      "type": "string",
      "readOnly": true
    },
    "model_permissions": {
      "type": "object",
      "readOnly": true
    },
    "is_anonymous": {
      "type": "string",
      "readOnly": true
    }
  },
  "required": [
    "username"
  ]
}