---
title: "Getgroups"
method: GET
path: "/v1/b2b/scim/{organization_id}/connection/{connection_id}"
tags: ["B2B Scim"]
---

# Getgroups

`GET /v1/b2b/scim/{organization_id}/connection/{connection_id}`

## Request

- Base URL: `https://api.stytch.com`
- URL: `https://api.stytch.com/v1/b2b/scim/{organization_id}/connection/{connection_id}`
- Auth: HTTP basic

Gets a paginated list of all SCIM Groups associated with a given Connection.

## Path parameters

- `organization_id` string, required: Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
- `connection_id` string, required: The ID of the SCIM connection.

## Query parameters

- `cursor` string: The `cursor` field allows you to paginate through your results. Each result array is limited to 1000 results. If your query returns more than 1000 results, you will need to paginate the responses using the `cursor`. If you receive a response that includes a non-null `next_cursor` in the `results_metadata` object, repeat the search call with the `next_cursor` value set to the `cursor` field to retrieve the next page of results. Continue to make search calls until the `next_cursor` in the response is null.
- `limit` integer: The number of search results to return per page. The default limit is 100. A maximum of 1000 results can be returned by a single search request. If the total size of your result set is greater than one page size, you must paginate the response. See the `cursor` field.

## Headers

- `X-Stytch-Member-Session` string
- `X-Stytch-Member-SessionJWT` string

## Response `200`

Successful response

- ApiB2bScimV1B2bScimConnectionGetGroupsResponse
  - `scim_groups` ApiB2bScimV1SCIMGroup[], required: A list of SCIM Connection Groups belonging to the connection.
    - `group_id` string, required: Stytch-issued, globally unique UUID that identifies a specific SCIM Group. The entity `id` in the SCIM specification is issued by the Service Provider (SP) and returned to the Identity Provider (IdP) to store and use for uniquely identify and updating the Group moving forward.
    - `group_name` string, required: The displayName of the SCIM group, sent from the Identity Provider (IdP).
    - `organization_id` string, required: Globally unique UUID that identifies a specific Organization. The organization_id is critical to perform operations on an Organization, so be sure to preserve this value.
    - `connection_id` string, required: The ID of the SCIM connection.
  - `status_code` integer, required
  - `next_cursor` string: The `next_cursor` string is returned when your search result contains more than one page of results. This value is passed into your next search call in the `cursor` field.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `429`: Too Many Requests
- `500`: Internal server error

## Changes

- **2026-03-07** `110f26a94e5b`: 1 info
  - endpoint added
- **2026-03-06** `9cab20b8eca7`: 1 breaking
  - api path removed without deprecation
- **2025-10-20** `a4801149ed74`: 2 info
  - added the new optional `header` request parameter `X-Stytch-Member-Session`
  - added the new optional `header` request parameter `X-Stytch-Member-SessionJWT`
- **2025-09-17** `8270cf3a3d4c`: 3 info
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `500`
  - added the non-success response with the status `429`
- **2025-09-17** `864b9f438ac0`: 2 breaking, 1 warning
  - for the `query` request parameter `limit`, the type changed from `string` to `integer`, and format from no format to `int32`
  - the `status_code` response's property type changed from `string` to `integer`, and format from no format to `int32` for status `200`
  - for the `query` request parameter `limit`, the min was set to `0.00`

[Operation history](https://skmtc.dev/stytch/apis/stytch-api/changes/v1/b2b/scim/:organization_id/connection/:connection_id/get.md)

---

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