---
title: "List ServiceNow assignment groups"
method: GET
path: "/api/v2/integration/servicenow/assignment_groups/{instance_id}"
tags: ["ServiceNow Integration"]
---

# List ServiceNow assignment groups

`GET /api/v2/integration/servicenow/assignment_groups/{instance_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integration/servicenow/assignment_groups/{instance_id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Get all assignment groups for a ServiceNow instance.

## Path parameters

- `instance_id` string, uuid, required

## Response `200`

OK

- ServiceNowAssignmentGroupsResponse: Response containing ServiceNow assignment groups
  - `data` ServiceNowAssignmentGroupData[], required: Array of ServiceNow assignment group data objects
    - `attributes` ServiceNowAssignmentGroupAttributes, required: Attributes of a ServiceNow assignment group
      - `assignment_group_name` string, required: The name of the assignment group
      - `assignment_group_sys_id` string, required: The system ID of the assignment group in ServiceNow
      - `instance_id` string, uuid, required: The ID of the ServiceNow instance
    - `id` string, uuid, required: Unique identifier for the ServiceNow assignment group
    - `type` 'assignment_groups', required: Type identifier for ServiceNow assignment group resources

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
