{
  "$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-paginated-user-response-list-schema.json",
  "title": "PaginatedUserResponseList",
  "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/PaginatedUserResponseList",
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer"
        }
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "first": {
          "type": [
            "string",
            "null"
          ]
        },
        "previous": {
          "type": [
            "string",
            "null"
          ]
        },
        "next": {
          "type": [
            "string",
            "null"
          ]
        },
        "last": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserResponse"
      }
    }
  },
  "$defs": {
    "UserResponse": {
      "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"
          },
          "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
        }
      },
      "required": [
        "username"
      ]
    }
  }
}