---
title: "Get List of Data Subject Groups"
method: GET
path: "/rest/api/consent/v4/groups"
tags: ["Data Subject Groups V4"]
---

# Get List of Data Subject Groups

`GET /rest/api/consent/v4/groups`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/rest/api/consent/v4/groups`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `CONSENT`

Use this API to retrieve a list of Data Subject Groups.

## Query parameters

- `page` integer
- `size` integer
- `sort` 'createdDate,asc' | 'createdDate,desc'

## Headers

- `requestContinuation` string
- `groupName` string

## Response `200`

OK

- ConsentAPILinkedIdentityGroupPageItemSliceDto
  - `content` ConsentAPILinkedIdentityGroupPageItemDto[]
    - `id` string, uuid: The unique identifier for a data subject group.
    - `name` string: The unique name for a data subject group.
    - `createdDate` string, date-time: The date on which the data subject group was created.
    - `lastModifiedDate` string, date-time: The date on which the data subject group was last modified.
  - `number` integer: The page number of the results.
  - `size` integer: The number of results per page.
  - `pageable` ConsentAPIPageableObject
    - `offset` integer
    - `sort` ConsentAPISortObject
      - `empty` boolean
      - `sorted` boolean
      - `unsorted` boolean
    - `pageNumber` integer
    - `paged` boolean
    - `pageSize` integer
    - `unpaged` boolean
  - `last` boolean: Flag indicating whether this is the last page or not.
  - `sort` ConsentAPISortObject
    - `empty` boolean
    - `sorted` boolean
    - `unsorted` boolean
  - `first` boolean
  - `numberOfElements` integer
  - `empty` boolean
  - `requestContinuation` string: The token used to paginate a response if the number of records is more than a page.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management.md) - [All operations](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management/revisions/fe4a0697ec9d?raw)
