> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Groups

> List workspace groups, including SCIM managed groups, and look one up by exact name

This endpoint lists the groups in your workspace. Use the returned `id` with the other group endpoints.

The call is authorized by the workspace API key's `USER_MANAGEMENT_API` scope. It does not run as the person who created the key, so it keeps working after that admin leaves the workspace.

## Base URL

```
https://api.langdock.com/user-management/v1/groups
```

> [!WARNING]
>
> **Dedicated deployments**
>
> Replace `api.langdock.com` with `<your-deployment-url>/api/public` in all requests.

## Prerequisites

* **API Key** with the `USER_MANAGEMENT_API` scope
* The API key must be created by a workspace admin

## Behavior

* Groups are ordered by `id`, not by name. `limit` is 1 to 250. The default is 50.
* Pass `nextCursor` back unchanged as `cursor`. `nextCursor` is the last group's `id`. It is omitted on the last page. `cursor` must be a UUID.
* `name` returns groups with exactly that name. The match ignores case. It is not a partial search. A name longer than 100 characters returns `400`.
* You can combine `name` with `cursor`.
* Each group has `id`, `name`, `description`, `isScimManaged`, `isPublic`, `memberCount`, `createdAt`, and `updatedAt`.
* `memberCount` counts human members. Deleted users and service accounts are not included.
* `isPublic` is read only on this API. A group created with [Create Group](https://docs.langdock.com/en/developer/user-management-api/create-group.md) starts with `isPublic` set to `false`.
* SCIM managed groups (`isScimManaged` is `true`) are included. You can read them here. [Update Group](https://docs.langdock.com/en/developer/user-management-api/update-group.md), [Delete Group](https://docs.langdock.com/en/developer/user-management-api/delete-group.md), and the member write endpoints return `409` with `code: "GROUP_SCIM_MANAGED"` if you try to change one.
* A group from another workspace is not listed.

> [!NOTE]
>
> Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on [API Key Best Practices](https://docs.langdock.com/en/admin/ai-adoption-and-rollout/best-practices/api-key-best-practices.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.