{
  "$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-role-user-assignment-response-list-schema.json",
  "title": "PaginatedRoleUserAssignmentResponseList",
  "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-definitions-user-assignments-api-openapi.yml#/components/schemas/PaginatedRoleUserAssignmentResponseList",
  "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/RoleUserAssignmentResponse"
      }
    }
  },
  "$defs": {
    "RoleUserAssignmentResponse": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "url": {
          "type": "string",
          "readOnly": true
        },
        "related": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        },
        "summary_fields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          },
          "readOnly": true
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true,
          "description": "The date/time this resource was created."
        },
        "created_by": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "readOnly": true,
          "description": "The user who created this resource."
        },
        "content_type": {
          "type": "string",
          "description": "String to use for references to this type from other models in the API.",
          "readOnly": true
        },
        "object_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The primary key of the object this assignment applies to; null value indicates system-wide assignment."
        },
        "object_ansible_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "The resource id of the object this role applies to. An alternative to the object_id field."
        },
        "role_definition": {
          "type": "integer",
          "format": "int64",
          "description": "The role definition which defines permissions conveyed by this assignment."
        },
        "user": {
          "type": "integer",
          "format": "int64"
        },
        "user_ansible_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "The resource ID of the user who will receive permissions from this assignment. An alternative to user field."
        }
      },
      "required": [
        "role_definition"
      ]
    }
  }
}