---
title: "Update group information"
method: PUT
path: "/usergroups/{group_id}"
tags: ["usergroup"]
---

# Update group information

`PUT /usergroups/{group_id}`

Update user group information

## Path parameters

- `group_id` integer, required

## Headers

- `X-Request-Id` string

## Request body

- UserGroup
  - `id` integer — The ID of the user group
  - `group_name` string — The name of the user group
  - `group_type` integer — The group type, 1 for LDAP group, 2 for HTTP group, 3 for OIDC group.
  - `ldap_group_dn` string — The DN of the LDAP group if group type is 1 (LDAP group).

## Response `200`

Success

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.dev/goharbor/apis/harbor-api.md) · [All operations](https://skmtc.dev/goharbor/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goharbor/harbor-api/revisions/62d78801f8df/schema)
