{
  "$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-access-view-set-user-response-list-schema.json",
  "title": "PaginatedUserAccessViewSet_User_ResponseList",
  "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-role-user-access-api-openapi.yml#/components/schemas/PaginatedUserAccessViewSet_User_ResponseList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserAccessViewSet_User_Response"
      }
    }
  },
  "$defs": {
    "UserAccessViewSet_User_Response": {
      "type": "object",
      "description": "controller uses auth.User model so this needs to be as compatible as possible, thus ModelSerializer",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "url": {
          "type": "string",
          "readOnly": true
        },
        "related": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        },
        "username": {
          "type": "string",
          "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
          "pattern": "^[\\w.@+-]+$",
          "maxLength": 150
        },
        "is_superuser": {
          "type": "boolean",
          "title": "Superuser status",
          "description": "Designates that this user has all permissions without explicitly assigning them."
        },
        "first_name": {
          "type": "string",
          "maxLength": 150
        },
        "last_name": {
          "type": "string",
          "maxLength": 150
        },
        "object_role_assignments": {
          "type": "string",
          "readOnly": true
        }
      },
      "required": [
        "username"
      ]
    }
  }
}