---
title: "List IdP groups for an organization"
method: GET
path: "/orgs/{org}/team-sync/groups"
tags: ["teams"]
---

# List IdP groups for an organization

`GET /orgs/{org}/team-sync/groups`

Lists IdP groups available in an organization.

## Path parameters

- `org` string, required

## Query parameters

- `per_page` integer
- `page` string
- `q` string

## Response `200`

Response

- GroupMapping — External Groups to be mapped to a team for membership
  - `groups` object[] — Array of groups to be mapped to this team
    - `group_id` string, required — The ID of the group
    - `group_name` string, required — The name of the group
    - `group_description` string, required — a description of the group
    - `status` string — synchronization status for this group mapping
    - `synced_at` string, nullable — the time of the last sync for this group-mapping

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
