---
ai:
  exclude: true
search:
  tags:
    - User
    - GET
seo:
  description: >-
    Get a paginated collection of groups that the given user is a… Reference for
    the GET /rest/api/user/memberof endpoint in the Confluence Data Center API.
sidebar:
  label: Get groups
  badge: GET
title: Get groups
type: openapi-operation
---
Get a paginated collection of groups that the given user is a member of. Example request URI(s):

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

`GET /rest/api/user/memberof`

**Responses**

- `200` — Returns a full JSON representation of a user.
- `403` — Returned if the calling user does not have permission to use confluence.

Response example, 200:

```json
{
  "results": [
    {
      "profilePicture": {
        "path": "http://www.example.com/path/to/image.png",
        "width": 16,
        "height": 16,
        "isDefault": true
      },
      "displayName": "Joe Smith",
      "type": "string"
    }
  ],
  "start": 25,
  "limit": 25,
  "size": 25,
  "_links": {
    "base": "http://localhost:8085/rest/api",
    "self": "http://localhost:8085/rest/api",
    "context": "http://localhost:8085/rest/api",
    "next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50",
    "prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0"
  }
}
```
