---
title: "List Active Directories"
method: GET
path: "/api/v2/activedirectories"
tags: ["Active Directory"]
---

# List Active Directories

`GET /api/v2/activedirectories`

## Request

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

This endpoint allows you to list all your Active Directory Instances.

#### Sample Request
```
curl -X GET https://console.jumpcloud.com/api/v2/activedirectories/ \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -H 'x-api-key: {API_KEY}'
  ```

## Query parameters

- `fields` string[]
- `filter` string[]
- `limit` integer
- `skip` integer
- `sort` string[]

## Headers

- `x-org-id` string

## Response `200`

- ActiveDirectory[]
  - `domain` string: Domain name for this Active Directory instance.
  - `id` string: ObjectID of this Active Directory instance.
  - `useCase` 'UNSET' | 'TWOWAYSYNC' | 'JCASAUTHORITY' | 'ADASAUTHORITY'
  - `groupsEnabled` boolean
  - `delegationState` 'ENABLED' | 'PENDING' | 'DISABLED': Delegation state of the Active Directory instance
  - `primaryAgent` string: ObjectID of the primary sync agent of domain.
  - `primaryImportAgent` string: ObjectID of the primary import agent of domain.
  - `updatedAt` string, date-time, nullable
  - `permission` 'PERMISSION_UNSPECIFIED' | 'PERMISSION_OWNER' | 'PERMISSION_READ_ONLY': Permission level for the Active Directory domain.
  - `organizationId` string: ObjectID of the organization that owns this Active Directory instance.
  - `associatedOrganizationIds` string[]: Organization object ids (hex) where this Active Directory integration is associated among the caller's authorized organizations.

---

[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)
