---
title: "Get the list of enrollment groups in an application"
method: GET
path: "/enrollmentGroups"
---

# Get the list of enrollment groups in an application

`GET /enrollmentGroups`

## Query parameters

- `api-version` string, required

## Response `200`

Success

- EnrollmentGroupCollection — The paged results of enrollment groups.
  - `value` EnrollmentGroup[], required — The collection of enrollment groups.
    - `id` string — Unique ID of the enrollment group.
    - `displayName` string, required — Display name of the enrollment group.
    - `enabled` boolean — Whether the devices using the group are allowed to connect to IoT Central.
    - `type` 'iot' | 'iotEdge', required — Type of devices that connect through the group.
    - `attestation` GroupAttestation, required — The attestation definition for an enrollment group.
      - `type` string, required — Type of the attestation.
    - `etag` string — ETag used to prevent conflict in enrollment group updates.
    - `idScope` string — ID scope for connecting to the IoT Central application.
  - `nextLink` string — URL to get the next page of enrollment groups.

## Other responses

- `default` — An error response received from the IoT Central Service.

---

[API](https://skmtc.net/azure/apis/iotcentral-iotcentral.md) · [All operations](https://skmtc.net/azure/apis/iotcentral-iotcentral/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/iotcentral-iotcentral/versions/565d8813cbd3/schema)
