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

# Enroll Users to Course


> ❗️ 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 enroll users into a specific course. 

> 🗒 Things to Know
>
> - Any number of users can be enrolled into the specified course per each API call.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2.0",
    "title": "Tech Risk & Compliance - Training"
  },
  "tags": [
    {
      "name": "Training"
    }
  ],
  "paths": {
    "/v2/enrollments": {
      "post": {
        "tags": [
          "Training"
        ],
        "summary": "Enroll Users to Course",
        "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 enroll users into a specific course. \n\n> 🗒 Things to Know\n>\n> - Any number of users can be enrolled into the specified course per each API call.",
        "operationId": "enrollUsersToCourseUsingPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnrollmentRequest"
              }
            }
          },
          "description": "User enrollment request",
          "required": true,
          "x-examples": {
            "application/json": {
              "courseId": "00000000-0000-0000-0000-000000000001",
              "courseName": "Conflict of Interest",
              "courseNameKey": "ATCourseConflictOfInterest",
              "deadline": "0000-00-00T00:00:00.000Z",
              "reminders": [
                {
                  "numberOfDays": 0,
                  "type": "BEFORE"
                }
              ],
              "defaultLanguageId": "00000000-0000-0000-0000-000000000002",
              "defaultLanguageKey": "ATLanguageAmericanEnglish",
              "defaultLanguageName": "English US",
              "courseLanguageVersion": 1,
              "comments": "complete the course within deadline",
              "users": [
                {
                  "id": "00000000-0000-0001-0000-000000000001"
                },
                {
                  "id": "00000000-0000-0002-0000-000000000003"
                },
                {
                  "id": "00000000-0000-0003-0000-000000000002"
                }
              ]
            }
          }
        },
        "responses": {
          "202": {
            "description": "Enroll users request has been accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    }
  },
  "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": {
      "EnrollmentRequest": {
        "type": "object",
        "required": [
          "courseId",
          "courseName",
          "courseNameKey",
          "deadline",
          "defaultLanguageId",
          "defaultLanguageName",
          "defaultLanguageKey",
          "courseLanguageVersion",
          "users"
        ],
        "properties": {
          "courseId": {
            "type": "string",
            "format": "uuid",
            "description": "ID assigned to each course. The value is obtained from [Get List of Courses](/onetrust/reference/listofcoursesusingget) API."
          },
          "courseName": {
            "type": "string",
            "description": "Name of the course."
          },
          "courseNameKey": {
            "type": "string",
            "description": "NameKey assigned to each course."
          },
          "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"
          },
          "reminders": {
            "$ref": "#/components/schemas/EnrollmentReminder"
          },
          "defaultLanguageId": {
            "type": "string",
            "format": "uuid",
            "description": "Valid unique id assigned to each language. The value is obtained from [Get List of Courses](/onetrust/reference/listofcoursesusingget) API."
          },
          "defaultLanguageKey": {
            "type": "string",
            "description": "Valid unique nameKey assigned to each language."
          },
          "defaultLanguageName": {
            "type": "string",
            "description": "Valid unique name assigned to each language."
          },
          "courseLanguageVersion": {
            "type": "integer",
            "format": "int32",
            "description": "Version of the course for particular language."
          },
          "comments": {
            "type": "string",
            "description": "Comments added if any while enrolling the users to the course."
          },
          "users": {
            "type": "array",
            "description": "Valid unique id assigned to each user.",
            "items": {
              "$ref": "#/components/schemas/UserDTO"
            }
          }
        },
        "title": "EnrollmentRequest"
      },
      "EnrollmentReminder": {
        "type": "object",
        "description": "The reminder for course deadline.",
        "properties": {
          "numberOfDays": {
            "type": "integer",
            "format": "int32",
            "description": "The number of days as a reminder for course deadline."
          },
          "type": {
            "type": "string",
            "description": "The reminder type for course deadline.",
            "enum": [
              "BEFORE",
              "AFTER"
            ]
          }
        },
        "title": "EnrollmentReminder"
      },
      "UserDTO": {
        "type": "object",
        "description": "Used to set Course deadline reminder.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Valid unique id assigned to each user."
          }
        },
        "title": "UserDTO"
      }
    }
  }
}
```

# 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)
* [Get Enrollment Details](https://developer.onetrust.com/onetrust/reference/getenrollmentdetailsusingpost.md)
* [Unenroll User from Course](https://developer.onetrust.com/onetrust/reference/unenrolluserusingdelete.md)