---
ai:
  exclude: true
search:
  tags:
    - User Group
    - PUT
seo:
  description: >-
    Add the given User identified by username to… Reference for the PUT
    /rest/api/user/{username}/group/{groupName} endpoint in the Confluence Data
    Center API.
sidebar:
  label: Update user group
  badge: PUT
title: Update user group
type: openapi-operation
---
Add the given User identified by username to the given Group identified by groupName. 

This method is idempotent i.e., if the membership already exists then no action will be taken.

`PUT /rest/api/user/{username}/group/{groupName}`

**Responses**

- `204` — No Content if the user is successfully added to the group
