---
title: "List GSuite Accounts"
method: GET
path: "/api/v2/providers/{provider_id}/g_suites"
tags: ["Providers", "G Suite"]
---

# List GSuite Accounts

`GET /api/v2/providers/{provider_id}/g_suites`

## Request

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

This endpoint allows you to list all your g_suites accounts for a Providers primary organization.

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

## Path parameters

- `provider_id` string, required

## Query parameters

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

## Headers

- `x-org-id` string

## Response `200`

- Gsuite[]
  - `id` string
  - `userLockoutAction` 'suspend' | 'maintain'
  - `userPasswordExpirationAction` 'suspend' | 'maintain' | 'remove_access'
  - `name` string
  - `groupsEnabled` boolean
  - `importFilter` string
  - `defaultDomain` DefaultDomain, nullable
    - `id` string
    - `domain` string
  - `organizationObjectId` string, byte: OrganizationObjectId is the object id of the organization that the account belongs to.

---

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