Skip to content
zublms
Documentation
Documentation/API reference
← All API operations
GETRuntime endpointChatGPT connector

Search company members as an organisation-wide owner or administrator

/api/v1/assistant/people

Optional read-only connector, disabled by default. Filters apply before pagination. A companyId must identify a verified active membership; select explicitly when several companies are returned by assistant-account. Unknown query fields and repeated parameters are rejected. No userId argument is accepted.

Authentication does not grant every action. Company scope, roles and current record access still apply. Protected writes require CSRF verification; company writes also require recent sign-in. Read the authentication guide.

Example request
// Run only in your authorised same-origin test application.
const response = await fetch('/api/v1/assistant/people', {
  method: 'GET',
  credentials: 'same-origin',
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
// Inspect Content-Type before reading JSON, text or a download.
// A 204 response has no body. Handle errors using the feature guide.

Request parameters

NameLocationRequirementSchema
companyIdqueryOptional{"format":"uuid","type":"string"}
groupIdqueryOptional{"format":"uuid","type":"string"}
learningqueryOptional{"enum":["any","overdue","active","completed","no_assignments"],"type":"string"}
limitqueryOptional{"format":"int64","maximum":100,"minimum":1,"type":"integer"}
offsetqueryOptional{"format":"int64","maximum":1000000,"minimum":0,"type":"integer"}
rolequeryOptional{"enum":["owner","administrator","unit_manager","author","learner","integration_principal"],"type":"string"}
searchqueryOptional{"maxLength":160,"type":"string"}
statusqueryOptional{"enum":["active","suspended","all"],"type":"string"}
teamIdqueryOptional{"format":"uuid","type":"string"}

Responses

200 Authorised bounded read result

application/json

Schema: ConnectorPeople

companyId string · required
See the definition for constraints and nested fields.
items array | null · required
See the definition for constraints and nested fields.
limit integer · required
See the definition for constraints and nested fields.
offset integer · required
See the definition for constraints and nested fields.
total integer · required
See the definition for constraints and nested fields.
Complete schema definition
{
  "additionalProperties": false,
  "properties": {
    "companyId": {
      "type": "string"
    },
    "items": {
      "items": {
        "$ref": "#/components/schemas/ConnectorDirPerson"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "limit": {
      "format": "int64",
      "type": "integer"
    },
    "offset": {
      "format": "int64",
      "type": "integer"
    },
    "total": {
      "format": "int64",
      "type": "integer"
    }
  },
  "required": [
    "companyId",
    "items",
    "total",
    "offset",
    "limit"
  ],
  "type": "object"
}
401 Authentication, authority, input, concurrency or read failure

application/json

error string · required
See the definition for constraints and nested fields.
Complete schema definition
{
  "properties": {
    "error": {
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

text/plain

Complete schema definition
{
  "type": "string"
}
403 Authentication, authority, input, concurrency or read failure

application/json

error string · required
See the definition for constraints and nested fields.
Complete schema definition
{
  "properties": {
    "error": {
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

text/plain

Complete schema definition
{
  "type": "string"
}
422 Authentication, authority, input, concurrency or read failure

application/json

error string · required
See the definition for constraints and nested fields.
Complete schema definition
{
  "properties": {
    "error": {
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

text/plain

Complete schema definition
{
  "type": "string"
}
429 Authentication, authority, input, concurrency or read failure

application/json

error string · required
See the definition for constraints and nested fields.
Complete schema definition
{
  "properties": {
    "error": {
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

text/plain

Complete schema definition
{
  "type": "string"
}
503 Authentication, authority, input, concurrency or read failure

application/json

error string · required
See the definition for constraints and nested fields.
Complete schema definition
{
  "properties": {
    "error": {
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

text/plain

Complete schema definition
{
  "type": "string"
}

The default error response can cover several status codes. Read error handling and retry guidance.

Referenced schemas

Expand a named definition to inspect nested fields and references. The download contains the complete OpenAPI document.

ConnectorDirPerson
{
  "additionalProperties": false,
  "properties": {
    "active": {
      "format": "int64",
      "type": "integer"
    },
    "completed": {
      "format": "int64",
      "type": "integer"
    },
    "email": {
      "type": "string"
    },
    "groupCount": {
      "format": "int64",
      "type": "integer"
    },
    "groups": {
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "id": {
      "type": "string"
    },
    "invitation": {
      "enum": [
        "",
        "pending",
        "expired",
        "unsent"
      ],
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "overdue": {
      "format": "int64",
      "type": "integer"
    },
    "roles": {
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "suspended": {
      "type": "boolean"
    },
    "teams": {
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "email",
    "suspended",
    "invitation",
    "roles",
    "teams",
    "groups",
    "groupCount",
    "active",
    "completed",
    "overdue"
  ],
  "type": "object"
}
ConnectorPeople
{
  "additionalProperties": false,
  "properties": {
    "companyId": {
      "type": "string"
    },
    "items": {
      "items": {
        "$ref": "#/components/schemas/ConnectorDirPerson"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "limit": {
      "format": "int64",
      "type": "integer"
    },
    "offset": {
      "format": "int64",
      "type": "integer"
    },
    "total": {
      "format": "int64",
      "type": "integer"
    }
  },
  "required": [
    "companyId",
    "items",
    "total",
    "offset",
    "limit"
  ],
  "type": "object"
}

Operation ID: assistant-people · Contract 0.0.0-dev

Documentation reviewed 9 November 2026 · Current implementation snapshot

Need account help? Contact your company administrator. Planning a rollout? Talk to us.