{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-users-result-schema.json",
  "title": "UsersResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-user-api-openapi.yml#/components/schemas/UsersResult",
  "type": "object",
  "properties": {
    "invitations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InvitationResult"
      },
      "uniqueItems": true
    },
    "users": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserResult"
      },
      "uniqueItems": true
    }
  },
  "$defs": {
    "InvitationResult": {
      "type": "object",
      "properties": {
        "invitationStatus": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "INTERNAL_ERROR",
            "FAILURE_USER_ALREADY_EXISTS",
            "FAILURE_USER_ALREADY_INVITED",
            "FAILURE_ONLY_DEFAULT_GROUP_INVITATION_ALLOWED",
            "FAILURE_TENANT_IDP_CONFIGURED"
          ]
        },
        "userEmail": {
          "type": "string"
        }
      }
    },
    "UserResult": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "fullName": {
          "type": "string"
        },
        "groupCount": {
          "type": "integer",
          "format": "int64"
        },
        "id": {
          "type": "string"
        },
        "lastLoggedIn": {
          "type": "integer",
          "format": "int64"
        },
        "tfaEnabled": {
          "type": "boolean"
        }
      },
      "required": [
        "email",
        "fullName",
        "id"
      ]
    }
  }
}