---
title: "List the Commands bound to a System Group"
method: GET
path: "/api/v2/systemgroups/{group_id}/commands"
tags: ["Graph", "System Group Associations"]
---

# List the Commands bound to a System Group

`GET /api/v2/systemgroups/{group_id}/commands`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/systemgroups/{group_id}/commands`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/systemgroups/:group_id/commands/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint will return all Commands bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization.

Each element will contain the group's type, id, attributes and paths.

The `attributes` object is a key/value hash of compiled graph attributes for all paths followed.

The `paths` array enumerates each path from this System Group to the corresponding Command; this array represents all grouping and/or associations that would have to be removed to deprovision the Command from this System Group.

See `/members` and `/associations` endpoints to manage those collections.

#### Sample Request
```
curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/commands \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'
```

## Query parameters

- `limit` integer
- `skip` integer
- `filter` string[]
- `details` 'v1'

## Headers

- `x-org-id` string

## Response `200`

OK

- CommandsGraphObjectWithPaths[]
  - `compiledAttributes` GraphAttributes, nullable: The graph attributes.
  - `id` string, required: Object ID of this graph object.
  - `paths` array[], required: A path through the graph between two graph objects.
    - GraphConnection[]
      - `attributes` GraphAttributes, nullable: The graph attributes.
      - `from` GraphObject
        - `attributes` GraphAttributes, nullable: The graph attributes.
        - `id` string, required: The ObjectID of the graph object.
        - `type` string, required: The type of graph object.
      - `to` GraphObject, required
        - `attributes` GraphAttributes, nullable: The graph attributes.
        - `id` string, required: The ObjectID of the graph object.
        - `type` string, required: The type of graph object.
  - `type` 'active_directory' | 'agent' | 'agent_group' | 'application' | 'command' | 'g_suite' | 'idp_routing_policy' | 'ldap_server' | 'office_365' | 'policy' | 'policy_group' | 'radius_server' | 'password_manager_item' | 'system' | 'system_group' | 'user' | 'user_group', required: A graph object type.
  - `commandType` string
  - `name` string
  - `timeout` string
  - `timeToLiveSeconds` integer
  - `organization` string
  - `command` string
  - `launchType` string
  - `schedule` string
  - `scheduleRepeatType` string

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
