---
title: "List Repository Groups"
method: GET
path: "/v1/repositories/{repositoryId}/groups"
tags: ["Repositories"]
---

# List Repository Groups

`GET /v1/repositories/{repositoryId}/groups`

## Request

- Base URL: `https://api.lucid.co`
- URL: `https://api.lucid.co/v1/repositories/{repositoryId}/groups`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://lucid.app/oauth2/authorize`
    - Token URL: `https://api.lucid.co/oauth2/token` scopes: `repository:readonly`
- TypeScript: <https://skmtc.dev/lucid/apis/lucid-rest-api/docs/v1/repositories/:repositoryId/groups/get.ts> (a function with typed inputs; its response is checked against the schema)

List groups with repository member access.

## Path parameters

- `repositoryId` string, required: Unique identifier for a repository folder, prefixed with `repo_`

## Response `200`

OK. Returns a list of groups with access to the repository.

- RepositoryGroupCollaborator[]
  - `repositoryId` string: Unique identifier of the repository
  - `groupId` integer: Unique identifier of the group

## Other responses

- `400`: Bad Request. Occurs when attempting to list groups on an UNRESTRICTED repository.
- `403`: Forbidden. Occurs when the user does not have access to the repository.

---

[API](https://skmtc.dev/lucid/apis/lucid-rest-api.md) - [All operations](https://skmtc.dev/lucid/apis/lucid-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lucid/apis/lucid-rest-api/revisions/9c2c917ec59c?raw)
