---
ai:
  exclude: true
search:
  tags:
    - issue
    - PUT
seo:
  description: >-
    Assign an issue to a user. Reference for the PUT
    /api/2/issue/{issueIdOrKey}/assignee endpoint in the Jira Software Data
    Center REST API Reference.
sidebar:
  label: Assign an issue to a user
  badge: PUT
title: Assign an issue to a user
type: openapi-operation
---
Assign an issue to a user.

`PUT /api/2/issue/{issueIdOrKey}/assignee`

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

UserBean containing the username

- `active` (boolean)
- `applicationRoles` (SimpleListWrapperApplicationRoleBean)
- `avatarUrls` (object)
- `deleted` (boolean)
- `displayName` (string)
- `emailAddress` (string)
- `expand` (string)
- `groups` (SimpleListWrapperGroupJsonBean)
- `key` (string)
- `lastLoginTime` (string)
- `locale` (string)
- `name` (string)
- `self` (string<uri>)
- `timeZone` (string)

Request body example:

```json
{
  "active": true,
  "applicationRoles": [
    "jira-core",
    "jira-admin",
    "important"
  ],
  "avatarUrls": {
    "48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
    "24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
    "16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
    "32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
  },
  "deleted": false,
  "displayName": "Fred F. User",
  "emailAddress": "fred@example.com",
  "expand": "string",
  "groups": {
    "callback": {},
    "maxResults": 0,
    "pagingCallback": {},
    "size": 0
  },
  "key": "JIRAUSER10100",
  "lastLoginTime": "2023-08-30T16:37:01+1000",
  "locale": "en_AU",
  "name": "fred",
  "self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
  "timeZone": "Australia/Sydney"
}
```

**Responses**

- `204` — Returns a response indicating the result of the assign operation.
- `400` — Returned if there is a problem with the received user representation.
- `401` — Returned if the calling user does not have permission to assign the issue.
- `404` — Returned if either the issue or the user does not exist.
