---
updatedAt: 2026-01-07T20:32:56.000Z
agentTools:
  projectIndex: https://developer.onetrust.com/onetrust/llms.txt
---

# Get Enrollment Details


> ❗️ 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>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2.0",
    "title": "Tech Risk & Compliance - Training"
  },
  "tags": [
    {
      "name": "Training"
    }
  ],
  "paths": {
    "/v1/enrollments/assignments": {
      "post": {
        "tags": [
          "Training"
        ],
        "summary": "Get Enrollment Details",
        "deprecated": true,
        "description": "\n> ❗️ End of Support Notification\n> \n> 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).\n\n\nUse this API to retrieve enrollment records for all courses.\n\n> 🗒 Things to Know\n> \n> The following are examples of available filters that can be applied:\n> \n> <details>\n> \n> <summary><b>Available Filters</b></summary>\n> \n> #### Organization:\n> \n> [{\"field\":\"organization\",\"operator\":\"=\",\"value\":”00000000-0000-0000-0000-000000000000\"}]\n> \n> #### Assignee ID:\n> \n> \\[{\"field\":\"assigneeId\",\"operator\":\"=\",\"value\":[\"00000000-0000-0000-0000-000000000000\"]}]  \n> \\[{\"field\":\"assigneeId\",\"operator\":\"=\",\"value\":[\"00000000-0000-0000-0000-000000000001\",\"00000000-0000-0000-0000-000000000002\"]}]\n> \n> #### Assigned Date:\n> \n> [{\"field\":\"assignedDate\",\"operator\":\"BW\",\"value\":\"yyyy-mm-ddT00:00:00.000Z\",\"toValue\":\"yyyy-mm-ddT00:00:00.000Z\"}]\n> \n> #### Status:\n> \n> \\[{\"field\":\"status\",\"operator\":\"=\",\"value\":[\"NOT_STARTED\"]}]  \n> \\[{\"field\":\"status\",\"operator\":\"=\",\"value\":[\"NOT_STARTED\",\"COMPLETED\"]}]  \n> Available status values: [\"NOT_STARTED\",\"IN_PROGRESS\",\"INCOMPLETE\",\"COMPLETED\"]\n> \n> #### Score:\n> \n> [{\"field\":\"score\",\"operator\":\"BW\",\"value\":\"00\",\"toValue\":\"100\"}]\n> \n> #### Language ID:\n> \n> \\[{\"field\":\"languageId\",\"operator\":\"=\",\"value\":[\"00000000-0000-0000-0000-000000000000\"]}]\n> \n> #### Deadline:\n> \n> [{\"field\":\"deadline\",\"operator\":\"BW\",\"value\":\"yyyy-mm-ddT00:00:00.000Z\",\"toValue\":\"yyyy-mm-ddT00:00:00.000Z\"}]\n> \n> #### Completed Date:\n> \n> [{\"field\":\"completedDate\",\"operator\":\"BW\",\"value\":\"yyyy-mm-ddT00:00:00.000Z\",\"toValue\":\"yyyy-mm-ddT00:00:00.000Z\"}]\n> \n> #### Course ID:\n> \n> \\[{\"field\":\"courseId\",\"operator\":\"=\",\"value\":[\"00000000-0000-0000-0000-000000000000\"]}]\n> \n> #### Multiple Filters:\n> \n> \\[ {\"field\":\"courseId\",\"operator\":\"=\",\"value\":[\"00000000-0000-0000-0000-000000000000\"],\"additionalInformation\":null},  \n> {\"field\":\"status\",\"operator\":\"=\",\"value\":[\"NOT_STARTED\"],\"additionalInformation\":null} ]\n> \n> </details>",
        "operationId": "getEnrollmentDetailsUsingPOST",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number of the results list (0…N).",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "The number of elements to be returned in a page. The maximum is 2000, if you exceed 2000 then 2000 is used by default.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "maximum": 2000,
              "default": 10
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchCriteriaRequest"
              }
            }
          },
          "description": "Workpaper search",
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageEnrollmentAssigneeInformation"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Too Many Requests\nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).",
            "headers": {
              "Retry-After": {
                "description": "The number of seconds after which requests will be allowed again.",
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "ot-ratelimit-event-id": {
                "description": "The unique identifier for the rate-limiting event.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "ot-requests-allowed": {
                "description": "The number of requests allowed within the specified period.",
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "ot-period": {
                "description": "The unit of time for which the rate limit applies.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "HOUR",
                    "MINUTE"
                  ]
                }
              },
              "ot-request-made": {
                "description": "The number of requests made within the specified period.",
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "metrics-enabled": false
  },
  "x-onetrust": {
    "spec-label": "Swagger 2",
    "links": {
      "Training Knowledge Base": "https://my.onetrust.com/s/topic/0TO1Q000000ssEEWAY/awareness-training"
    }
  },
  "servers": [
    {
      "url": "https://customer.my.onetrust.com/api/awareness-training"
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{$$.env.host}/api/access/v1/oauth/token",
            "scopes": {
              "TRAINING_READ": "Scope used to perform READ operation in Training Module",
              "TRAINING": "Scope used for both READ and WRITE operation in Training Module"
            }
          }
        }
      }
    },
    "schemas": {
      "SearchCriteriaRequest": {
        "type": "array",
        "description": "This is a map of the field name and the field value.",
        "title": "SearchCriteriaRequest",
        "items": {
          "$ref": "#/components/schemas/FilterInformation"
        }
      },
      "FilterInformation": {
        "type": "object",
        "title": "FilterInformation",
        "properties": {
          "field": {
            "type": "string",
            "description": "The field value to filter the results.\nAvailable field Values:\n  organization, assigneeId, assignedDate, status, score, languageId, deadline, completedDate, courseId"
          },
          "operator": {
            "type": "string",
            "description": "The search operator for the filter.",
            "example": "= , BW"
          },
          "value": {
            "type": "object",
            "description": "The search value to filter the results.",
            "example": "NameA"
          },
          "toValue": {
            "type": "object"
          }
        }
      },
      "PageEnrollmentAssigneeInformation": {
        "type": "object",
        "title": "PageEnrollmentAssigneeInformation",
        "properties": {
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnrollmentAssigneeInformation"
            }
          },
          "empty": {
            "type": "boolean",
            "example": "FALSE",
            "description": "The flag to check if a result list is empty or not."
          },
          "first": {
            "type": "boolean",
            "description": "The flag to check if the page is the first page or not.",
            "example": "TRUE"
          },
          "last": {
            "type": "boolean",
            "example": "FALSE",
            "description": "the flag to check if the page is the last page or not."
          },
          "number": {
            "type": "integer",
            "format": "int32",
            "description": "A number to show the total in the list.",
            "example": 0
          },
          "numberOfElements": {
            "type": "integer",
            "format": "int32",
            "example": 10,
            "description": "Number of total elements returned in the API."
          },
          "pageable": {
            "$ref": "#/components/schemas/Pageable"
          },
          "size": {
            "type": "integer",
            "format": "int32",
            "description": "Size of the list.",
            "example": 5
          },
          "sort": {
            "$ref": "#/components/schemas/Sort"
          },
          "totalElements": {
            "type": "integer",
            "format": "int64",
            "description": "Total elements in the return list.",
            "example": 20
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "description": "Total pages returned in the list.",
            "example": 5
          }
        }
      },
      "Pageable": {
        "type": "object",
        "title": "Pageable",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int64",
            "example": 3,
            "description": "The offset of the list."
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32",
            "description": "Page number of the results list (0….N).",
            "example": 3
          },
          "pageSize": {
            "type": "integer",
            "format": "int32",
            "description": "Number of records per page (0…N).",
            "example": 23
          },
          "paged": {
            "type": "boolean",
            "description": "The flag to determine if the list is paged. If set True, the list is paged.",
            "example": true
          },
          "sort": {
            "$ref": "#/components/schemas/Sort"
          },
          "unpaged": {
            "type": "boolean",
            "description": "The flag to determine if the list is not paged. If set True, the list is not paged.",
            "example": false
          }
        }
      },
      "Sort": {
        "type": "object",
        "title": "Sort",
        "properties": {
          "empty": {
            "type": "boolean",
            "description": "The flag to determine if the list is empty.",
            "example": true
          },
          "sorted": {
            "type": "boolean",
            "description": "The flag to determine if the list is sorted. If set True, the list is sorted.",
            "example": true
          },
          "unsorted": {
            "type": "boolean",
            "description": "The flag to determine if the list is unsorted. If set True, the list is unsorted.",
            "example": "True"
          }
        }
      },
      "EnrollmentAssigneeInformation": {
        "type": "object",
        "title": "EnrollmentAssigneeInformation",
        "properties": {
          "assigneeId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of an assignee.",
            "example": "f3d38630-9246-45be-898a-69878bd108e4"
          },
          "assignedDate": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time at which the course was assigned. The format is YYYY-MM-DDTHH:MM:SS.FFFZ"
          },
          "assigneeName": {
            "type": "string",
            "description": "Name of the assignee."
          },
          "assigneeEmail": {
            "type": "string",
            "description": "Email Id of the assignee."
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time at which the course should be completed. The format is YYYY-MM-DDTHH:MM:SS.FFFZ"
          },
          "status": {
            "type": "string",
            "description": "Status of the course period.",
            "enum": [
              "NOT_STARTED",
              "IN_PROGRESS",
              "INCOMPLETE",
              "COMPLETED"
            ]
          },
          "score": {
            "type": "integer",
            "format": "int32",
            "description": "Number of records per page (0…N).",
            "example": 80
          },
          "completedDate": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time at which user completes the course. The format is YYYY-MM-DDTHH:MM:SS.FFFZ"
          },
          "languageId": {
            "type": "string",
            "format": "uuid",
            "description": "ID assigned to each language."
          },
          "languageName": {
            "type": "string",
            "description": "Name of the language."
          },
          "languageKey": {
            "type": "string",
            "description": "NameKey assigned to each language."
          },
          "courseId": {
            "type": "string",
            "format": "uuid",
            "description": "ID assigned to each course."
          },
          "courseName": {
            "type": "string",
            "description": "Name of the course."
          },
          "courseNameKey": {
            "type": "string",
            "description": "NameKey assigned to each course."
          },
          "enrollmentAssigneeId": {
            "type": "string",
            "format": "uuid",
            "description": "ID which gets created when the user is enrolled to a course."
          },
          "orgGroupId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of an organization.",
            "example": "f3d38630-9246-45be-898a-69878bd108e4"
          },
          "organization": {
            "type": "string",
            "description": "Name of the organization."
          },
          "courseVersion": {
            "type": "integer",
            "description": "Valid course version to which the user has been enrolled."
          },
          "enrollmentId": {
            "type": "string",
            "format": "uuid",
            "description": "ID which gets created when the user is enrolled to a course."
          }
        }
      }
    }
  }
}
```

# Sibling pages

* [Get List of Courses](https://developer.onetrust.com/onetrust/reference/listofcoursesusingget.md)
* [Get User's Enrollment Status](https://developer.onetrust.com/onetrust/reference/getstatusofenrollmentusingget.md)
* [Unenroll User from Course](https://developer.onetrust.com/onetrust/reference/unenrolluserusingdelete.md)
* [Enroll Users to Course](https://developer.onetrust.com/onetrust/reference/enrolluserstocourseusingpost.md)