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

# User Groups Service

> User Groups Service API methods in the Galtea SDK

> [!WARNING]
>
> You are reading the docs of Galtea 5.10. [Read this page in the latest version](https://docs.galtea.ai/sdk/api/user-group/service.md).

The User Groups Service in the Galtea SDK allows you to manage [user groups](https://docs.galtea.ai/v5.10/concepts/user-group.md) for your organization.
This Service is exposed by the `galtea.user_groups` object.

> [!NOTE]
>
> Remember that we will be using the `galtea` object. More information [here](https://docs.galtea.ai/v5.10/sdk/api/galtea.md).

## Quick Example

First, initialize the Galtea SDK:

```python theme={"system"}
galtea = Galtea(api_key="YOUR_API_KEY")
```

Create a user group:

```python theme={"system"}
user_group = galtea.user_groups.create(
    name="quality-reviewers-" + run_identifier,
    description="Team responsible for reviewing output quality",
)
```

List user groups:

```python theme={"system"}
user_groups = galtea.user_groups.list(
    sort_by_created_at="desc",
    limit=10,
)
```

## Service Methods

* [Create User Group](https://docs.galtea.ai/v5.10/sdk/api/user-group/create.md)
* [List User Groups](https://docs.galtea.ai/v5.10/sdk/api/user-group/list.md)
* [Get User Group](https://docs.galtea.ai/v5.10/sdk/api/user-group/get.md)
* [Get User Group by Name](https://docs.galtea.ai/v5.10/sdk/api/user-group/get-by-name.md)
* [Update User Group](https://docs.galtea.ai/v5.10/sdk/api/user-group/update.md)
* [Delete User Group](https://docs.galtea.ai/v5.10/sdk/api/user-group/delete.md)
* [Link Users](https://docs.galtea.ai/v5.10/sdk/api/user-group/link-users.md)
* [Unlink Users](https://docs.galtea.ai/v5.10/sdk/api/user-group/unlink-users.md)
* [Link Metrics](https://docs.galtea.ai/v5.10/sdk/api/user-group/link-metrics.md)
* [Unlink Metrics](https://docs.galtea.ai/v5.10/sdk/api/user-group/unlink-metrics.md)
* [Link Products](https://docs.galtea.ai/v5.10/sdk/api/user-group/link-products.md)
* [Unlink Products](https://docs.galtea.ai/v5.10/sdk/api/user-group/unlink-products.md)

## Related

* [User Group](https://docs.galtea.ai/v5.10/concepts/user-group.md)


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