---
updatedAt: 2026-08-29T02:45:31.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/platform-api/llms.txt
---

# List all device groups for a customer

Retrieves all device groups for the authenticated customer.

**Required Permissions:** `device-groups:read`

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Security Cloud Devices API",
    "description": "API for accessing Security Cloud device information",
    "version": "1.0.0",
    "termsOfService": "https://www.jamf.com/developer-resources/api-license-agreement/",
    "contact": {
      "name": "Jamf Developer",
      "url": "https://developer.jamf.com"
    }
  },
  "paths": {
    "/v2/groups": {
      "get": {
        "tags": [
          "device-groups"
        ],
        "summary": "List all device groups for a customer",
        "description": "Retrieves all device groups for the authenticated customer.\n\n**Required Permissions:** `device-groups:read`",
        "operationId": "listGroupsV2",
        "responses": {
          "200": {
            "description": "Groups retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupListResponseV2"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/X-Tenant-Id"
          },
          {
            "$ref": "#/components/parameters/X-Environment-Id"
          }
        ],
        "security": [
          {
            "oauth2": [
              "device-groups:read"
            ]
          }
        ],
        "x-required-privileges": [
          "device-groups:read"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "GroupListResponseV2": {
        "type": "object",
        "description": "List of device groups for the authenticated customer.",
        "properties": {
          "groups": {
            "type": "array",
            "description": "Device groups belonging to the customer. Always contains at least the implicit \"Default Group\" entry.",
            "minItems": 1,
            "maxItems": 10000,
            "items": {
              "$ref": "#/components/schemas/GroupListItem"
            }
          }
        },
        "required": [
          "groups"
        ]
      },
      "GroupListItem": {
        "type": "object",
        "description": "A device group as returned by the list endpoints. Identical to Group, except that the implicit \"Default Group\" entry has no identifier and so omits the id field.",
        "required": [
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique group identifier. Omitted for the implicit \"Default Group\" entry, which is not a stored group.",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "name": {
            "type": "string",
            "description": "Display name of the group",
            "minLength": 1,
            "maxLength": 255,
            "example": "Engineering Devices"
          }
        }
      }
    },
    "parameters": {
      "X-Tenant-Id": {
        "name": "X-Tenant-Id",
        "in": "header",
        "required": false,
        "description": "The tenant UUID identifier. Send it to address tenant scope. This API is also published at environment scope — send that scope's header instead. Send exactly one scope header per request.",
        "schema": {
          "type": "string",
          "format": "uuid",
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
          "example": "e77c1408-10c8-4007-b177-abc9157fbcaa"
        }
      },
      "X-Environment-Id": {
        "name": "X-Environment-Id",
        "in": "header",
        "required": false,
        "description": "The environment UUID identifier. Send it to address environment scope. This API is also published at tenant scope — send that scope's header instead. Send exactly one scope header per request.",
        "schema": {
          "type": "string",
          "format": "uuid",
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
          "example": "e77c1408-10c8-4007-b177-abc9157fbcaa"
        }
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "Obtain an access token by calling the API Gateway's token endpoint using the OAuth2 client-credentials flow.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{region}.api.jamfcloud.com/auth/token",
            "scopes": {
              "device-groups:create": "",
              "device-groups:delete": "",
              "device-groups:read": "",
              "device-groups:update": ""
            }
          }
        }
      }
    }
  },
  "x-scope-types": [
    "tenant",
    "environment"
  ],
  "servers": [
    {
      "url": "https://{region}.api.jamfcloud.com/securitycloud",
      "description": "Jamf Beta API Gateway - prod",
      "variables": {
        "region": {
          "default": "us",
          "enum": [
            "us",
            "eu",
            "apac"
          ],
          "description": "Geographic deployment region"
        }
      }
    }
  ],
  "security": [
    {
      "oauth2": []
    }
  ]
}
```