---
ai:
  exclude: true
search:
  tags:
    - User
    - GET
seo:
  description: >-
    Get information about a user identified by either user key or username.…
    Reference for the GET /rest/api/user endpoint in the Confluence Data Center
    API.
sidebar:
  label: Get user
  badge: GET
title: Get user
type: openapi-operation
---
Get information about a user identified by either user key or username. Example request URI(s):

`http://example.com/confluence/rest/api/user?username=jblogs`
`http://example.com/confluence/rest/api/user?key=402880824ff933a4014ff9345d7c0002`

`GET /rest/api/user`

**Responses**

- `200` — Returns a full JSON representation of a user
- `403` — Returned if the calling user does not have permission to view users.
- `404` — Returned if a user with the given username or userkey does not exist.

Response example, 200:

```json
{
  "profilePicture": {
    "path": "http://www.example.com/path/to/image.png",
    "width": 16,
    "height": 16,
    "isDefault": true
  },
  "displayName": "Joe Smith",
  "type": "string"
}
```
