{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-organization-members-search-response-schema.json",
  "title": "OrganizationMembersSearchResponse",
  "description": "Response for query by cursor and filter parameters",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-organization-members-api-openapi.yml#/components/schemas/OrganizationMembersSearchResponse",
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "description": "Maximum number of results returned based on the limit specified in the request. For example, if there are 20 results, the request has no cursor value, and the limit is set to 20, the size of the results will be 20. The rest of the results will not be returned. To retrieve the rest of the results, you must make another request and set the appropriate value for the cursor parameter value.",
      "format": "int32"
    },
    "size": {
      "type": "integer",
      "description": "Number of results returned in the response considering the cursor and the limit values sent in the request. For example, if there are 20 results, the request does not have a cursor value, and the limit set to 10, the size of the results will be 10.",
      "format": "int32"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrganizationMember"
      }
    },
    "cursor": {
      "type": "string",
      "description": "Indicator of the position of the next page of the result. To retrieve the next page, make another query setting its cursor field to the value returned by the current query. If the value is empty, there are no more pages to fetch."
    },
    "type": {
      "type": "string",
      "description": "Type of the object returned.",
      "default": "cursor-list"
    }
  },
  "$defs": {
    "AdminRole": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of the admin role prebuilt or custom",
          "enum": [
            "prebuilt",
            "custom"
          ]
        },
        "name": {
          "type": "string",
          "description": "Name of the admin role"
        }
      }
    },
    "OrganizationMember": {
      "description": "Organization member",
      "required": [
        "active",
        "email",
        "id",
        "license",
        "role"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Id of the user"
        },
        "active": {
          "type": "boolean",
          "description": "Indicates if a user is active or deactivated. Learn more about <a target=\"blank\" href=\"https://help.miro.com/hc/en-us/articles/360025025894-Deactivated-users\">user deactivation</a>."
        },
        "email": {
          "type": "string",
          "description": "User email"
        },
        "lastActivityAt": {
          "type": "string",
          "description": "Date and time when the user was last active. <br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)). If the user never logged in, the parameter value is empty.\n",
          "format": "date-time"
        },
        "license": {
          "type": "string",
          "description": "Name of the current user license in the organization",
          "enum": [
            "advanced",
            "standard",
            "basic",
            "full",
            "occasional",
            "free",
            "free_restricted",
            "full_trial",
            "unknown"
          ]
        },
        "licenseAssignedAt": {
          "type": "string",
          "description": "Time when the license was assigned to the user",
          "format": "date-time"
        },
        "role": {
          "type": "string",
          "description": "Name of the user role in the organization",
          "enum": [
            "organization_internal_admin",
            "organization_internal_user",
            "organization_external_user",
            "organization_team_guest_user",
            "unknown"
          ]
        },
        "type": {
          "type": "string",
          "description": "Type of the object returned.",
          "default": "organization-member"
        },
        "adminRoles": {
          "description": "List of admin roles assigned to the user",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdminRole"
          }
        }
      }
    }
  }
}