---
title: endpointGroup query | Wartiva GraphQL API
description: Retrieves an EndpointGroup by its graph object id: an operating system or domain group on an endpoint. Wartiva GraphQL API reference with examples.
url: https://wartiva.com/api-docs/queries/endpoint-group.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL query

# `endpointGroup` query

Retrieves an [EndpointGroup](https://wartiva.com/api-docs/types/endpoint-group.html) by its graph object id: an operating system or domain group on an endpoint, identified by its SID on Windows or GID on macOS and Linux, with its member users. An [Endpoint](https://wartiva.com/api-docs/types/endpoint.html) lists its current groups through `groups` and their history through `groupsSeen`, and an [EndpointUser](https://wartiva.com/api-docs/types/endpoint-user.html) lists the groups it belongs to the same way; find them across endpoints with [graphSearch](https://wartiva.com/api-docs/queries/graph-search.html) on the ENDPOINT_GROUP object type. Returns a not-found error when no object has the id, and an error when the id belongs to another object type.

## Response

Returns an [`EndpointGroupPayload!`](https://wartiva.com/api-docs/types/endpoint-group-payload.html)

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The EndpointGroup identifier. |
| `mockOptions` - [`MockDataInput`](https://wartiva.com/api-docs/types/mock-data-input.html) | Options for mock data generation. Options supported: key: "PLATFORM", value: OsPlatform example: "mockOptions": { "options": [ { "key": "PLATFORM", "value": "WINDOWS" } ] } |

## Example

### Query

```graphql
query endpointGroup(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  endpointGroup(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      seen {
        ...SeenOnlineFragment
      }
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      endpoint {
        ...EndpointFragment
      }
      groupname
      description
      gid
      sid
      members {
        ...EndpointUserConnectionFragment
      }
      membersSeen {
        ...EndpointUserConnectionFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

```

### Variables

```json
{
  "id": "4",
  "mockOptions": MockDataInput
}

```

### Response

```json
{"data": {"endpointGroup": {"node": EndpointGroup}}}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
