---
ai:
  exclude: true
search:
  tags:
    - group
    - POST
seo:
  description: >-
    Adds given user to a group. Reference for the POST /api/2/group/user
    endpoint in the Jira Software Data Center REST API Reference.
sidebar:
  label: Add a user to a specified group
  badge: POST
title: Add a user to a specified group
type: openapi-operation
---
Adds given user to a group

`POST /api/2/group/user`

**Request body** (`application/json`)

- `name` (string)

Request body example:

```json
{
  "name": "charlie"
}
```

**Responses**

- `201` — Returns full representation of a Jira group in JSON format.
- `400` — Returned if user requested an empty group name or the user already belongs to the group.
- `401` — Returned if the current user is not authenticated.
- `403` — Returned if the current user does not have administrator permissions.
- `404` — Returned if the requested group was not found or requested user was not found.

Response example, 201:

```json
{
  "name": "jira-administrators",
  "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators",
  "users": {
    "backingListSize": 0,
    "callback": {},
    "items": [],
    "maxResults": 50,
    "pagingCallback": {},
    "size": 50
  }
}
```
