{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-organization-member-schema.json",
  "title": "OrganizationMember",
  "description": "Organization member",
  "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/OrganizationMember",
  "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"
      }
    }
  },
  "$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"
        }
      }
    }
  }
}