---
title: "Get Enrollment Details"
method: POST
path: "/v1/enrollments/assignments"
tags: ["Training"]
deprecated: true
---

# Get Enrollment Details

`POST /v1/enrollments/assignments`

## Request

- Base URL: `https://customer.my.onetrust.com/api/awareness-training`
- URL: `https://customer.my.onetrust.com/api/awareness-training/v1/enrollments/assignments`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{$$.env.host}/api/access/v1/oauth/token`

> **Deprecated.**

> ❗️ End of Support Notification
> 
> As of December 5, 2025, this API is now deprecated. For more information, see [OneTrust API Sunsetting & Deprecation Guidelines](https://developer.onetrust.com/onetrust/reference/onetrust-api-sunsetting-deprecation-guidelines).


Use this API to retrieve enrollment records for all courses.

> 🗒 Things to Know
> 
> The following are examples of available filters that can be applied:
> 
> <details>
> 
> <summary><b>Available Filters</b></summary>
> 
> #### Organization:
> 
> [{"field":"organization","operator":"=","value":”00000000-0000-0000-0000-000000000000"}]
> 
> #### Assignee ID:
> 
> \[{"field":"assigneeId","operator":"=","value":["00000000-0000-0000-0000-000000000000"]}]  
> \[{"field":"assigneeId","operator":"=","value":["00000000-0000-0000-0000-000000000001","00000000-0000-0000-0000-000000000002"]}]
> 
> #### Assigned Date:
> 
> [{"field":"assignedDate","operator":"BW","value":"yyyy-mm-ddT00:00:00.000Z","toValue":"yyyy-mm-ddT00:00:00.000Z"}]
> 
> #### Status:
> 
> \[{"field":"status","operator":"=","value":["NOT_STARTED"]}]  
> \[{"field":"status","operator":"=","value":["NOT_STARTED","COMPLETED"]}]  
> Available status values: ["NOT_STARTED","IN_PROGRESS","INCOMPLETE","COMPLETED"]
> 
> #### Score:
> 
> [{"field":"score","operator":"BW","value":"00","toValue":"100"}]
> 
> #### Language ID:
> 
> \[{"field":"languageId","operator":"=","value":["00000000-0000-0000-0000-000000000000"]}]
> 
> #### Deadline:
> 
> [{"field":"deadline","operator":"BW","value":"yyyy-mm-ddT00:00:00.000Z","toValue":"yyyy-mm-ddT00:00:00.000Z"}]
> 
> #### Completed Date:
> 
> [{"field":"completedDate","operator":"BW","value":"yyyy-mm-ddT00:00:00.000Z","toValue":"yyyy-mm-ddT00:00:00.000Z"}]
> 
> #### Course ID:
> 
> \[{"field":"courseId","operator":"=","value":["00000000-0000-0000-0000-000000000000"]}]
> 
> #### Multiple Filters:
> 
> \[ {"field":"courseId","operator":"=","value":["00000000-0000-0000-0000-000000000000"],"additionalInformation":null},  
> {"field":"status","operator":"=","value":["NOT_STARTED"],"additionalInformation":null} ]
> 
> </details>

## Query parameters

- `page` integer
- `size` integer

## Request body

- FilterInformation[]: This is a map of the field name and the field value.
  - `field` string: The field value to filter the results. Available field Values: organization, assigneeId, assignedDate, status, score, languageId, deadline, completedDate, courseId
  - `operator` string: The search operator for the filter.
  - `value` object: The search value to filter the results.
  - `toValue` object

## Response `200`

OK

- PageEnrollmentAssigneeInformation
  - `content` EnrollmentAssigneeInformation[]
    - `assigneeId` string, uuid: ID of an assignee.
    - `assignedDate` string, date-time: The date and time at which the course was assigned. The format is YYYY-MM-DDTHH:MM:SS.FFFZ
    - `assigneeName` string: Name of the assignee.
    - `assigneeEmail` string: Email Id of the assignee.
    - `deadline` string, date-time: The date and time at which the course should be completed. The format is YYYY-MM-DDTHH:MM:SS.FFFZ
    - `status` 'NOT_STARTED' | 'IN_PROGRESS' | 'INCOMPLETE' | 'COMPLETED': Status of the course period.
    - `score` integer: Number of records per page (0…N).
    - `completedDate` string, date-time: The date and time at which user completes the course. The format is YYYY-MM-DDTHH:MM:SS.FFFZ
    - `languageId` string, uuid: ID assigned to each language.
    - `languageName` string: Name of the language.
    - `languageKey` string: NameKey assigned to each language.
    - `courseId` string, uuid: ID assigned to each course.
    - `courseName` string: Name of the course.
    - `courseNameKey` string: NameKey assigned to each course.
    - `enrollmentAssigneeId` string, uuid: ID which gets created when the user is enrolled to a course.
    - `orgGroupId` string, uuid: ID of an organization.
    - `organization` string: Name of the organization.
    - `courseVersion` integer: Valid course version to which the user has been enrolled.
    - `enrollmentId` string, uuid: ID which gets created when the user is enrolled to a course.
  - `empty` boolean: The flag to check if a result list is empty or not.
  - `first` boolean: The flag to check if the page is the first page or not.
  - `last` boolean: the flag to check if the page is the last page or not.
  - `number` integer: A number to show the total in the list.
  - `numberOfElements` integer: Number of total elements returned in the API.
  - `pageable` Pageable
    - `offset` integer: The offset of the list.
    - `pageNumber` integer: Page number of the results list (0….N).
    - `pageSize` integer: Number of records per page (0…N).
    - `paged` boolean: The flag to determine if the list is paged. If set True, the list is paged.
    - `sort` Sort
      - `empty` boolean: The flag to determine if the list is empty.
      - `sorted` boolean: The flag to determine if the list is sorted. If set True, the list is sorted.
      - `unsorted` boolean: The flag to determine if the list is unsorted. If set True, the list is unsorted.
    - `unpaged` boolean: The flag to determine if the list is not paged. If set True, the list is not paged.
  - `size` integer: Size of the list.
  - `sort` Sort
    - `empty` boolean: The flag to determine if the list is empty.
    - `sorted` boolean: The flag to determine if the list is sorted. If set True, the list is sorted.
    - `unsorted` boolean: The flag to determine if the list is unsorted. If set True, the list is unsorted.
  - `totalElements` integer: Total elements in the return list.
  - `totalPages` integer: Total pages returned in the list.

## Other responses

- `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).

---

[API](https://skmtc.dev/onetrust/apis/tech-risk-compliance-training.md) - [All operations](https://skmtc.dev/onetrust/apis/tech-risk-compliance-training/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/tech-risk-compliance-training/revisions/7d5b792255bd?raw)
