Introduction
The Docebo Connect connector is responsible for communicating with the Docebo platform using the provided actions which, in the background, communicate with the platform’s APIs.
This article describes enrollment actions available for use in the Docebo connector.
Enrollment actions supported by the connector
These actions manage user enrollment in courses and learning plans. Unless otherwise stated, all input fields are optional.
Get enrollments
Action name: Get enrollments
Retrieves a list of course and learning plan enrollments based on specified filters, such as user ID, course ID, status, and dates. Includes options for pagination and returning session details.
Input Field Name | Data Type | Description |
ID User | Array of Objects | An array of user IDs used to retrieve the entries |
ID Course | Array of Objects | An array of course IDs used to retrieve the entries |
Code course | Array of Objects | An array of course codes used to retrieve the entries |
ID learning plan | Array of Objects | An array of learning plan IDs used to retrieve the entries |
Code learning plan | Array of Objects | An array of learning plan codes used to retrieve the entries |
Course status | String | A list of comma separated course statuses. Possible values are:
|
Course type | String | A list of comma separated course types. Possible values are:
|
Deadline | Date/Time | If set, returns only enrollments that expire between the current time and the specified time |
Updated from | Date/Time | If set, returns only enrollments updated after a specified time |
Updated to | Date/Time | If set, returns only enrollments updated before a specified time |
Rating | Integer | If set, returns only enrollments that have a minimum the selected rating. Possible values are:
|
Channel | Integer | Filter enrollments that are found inside the given channel by channel ID |
Search | String | Filtering results by wildcard match on the passed string |
Get session details | Boolean | Return a list of sessions for each enrollment. Possible values are:
|
Level | String | Filter results by the selected enrollment level. Possible values are:
|
Cursor | String | Data set navigational cursor previously obtained by passing |
Get cursor | Integer | Generates and returns cursor and prebuilt navigational
|
Sort by | String | Choose the sorting attribute and direction. Possible sorting values are:
|
Exclude courses in lp | Boolean | Exclude courses that belong to a learning plan. Possible values are:
|
Show upcoming sessions | Boolean | Include only courses with upcoming sessions. Possible values are:
|
Page size | Integer | Specify the maximum number of results per page |
Page | Integer | Specify the page number to return. The default value is |
Skills | Array of Objects | An array of skills IDs |
Search text | String | Search text in the course name, course description or course code or in the learning plan name, learning plan description or learning plan code. |
Duration from seconds | Integer | Filter by course duration. Retrieve the courses with duration equal to or greater than the provided value. The duration value is specified in seconds. |
Duration to seconds | Integer | Filter by course duration. Retrieve the courses with duration equal to or less than the provided value. The duration value is specified in seconds. |
Content partners | Array of Objects | An array of content partner IDs |
Is paid | Boolean | Set to |
With visibility | String | Filter the results by visibility. Possible values are:
|
Language | String | A list of comma-separated language codes. For a list of supported languages and their corresponding codes, please view the column marked lang_browsercode in the article List of supported languages (opens in a new tab). |
Course Additional fields | Object | Search a specified course additional field
|
Output Field Name | Data Type | Description |
Enrollments | Object | The main wrapper object for the API response |
Data | Object | The main collection of items and pagination metadata |
Items | Array of Objects | A list of matching enrollment records |
ID | Integer | The enrollment ID (usually a course or learning plan ID) |
User ID | Integer | The ID of the enrolled user |
Date last updated | String | The last update date for this enrollment |
Subscribed by | Integer | The ID of the user who performed the subscription |
Username | String | The username of the enrolled user |
Name | String | The name of the course or learning plan |
Slug | String | The URL slug name |
Complete percent | Integer | The percentage of the content completed |
Description | String | The description of the item |
Type | String | The type of enrollment (for example, |
Status | String | The enrollment status (for example, |
Location name | String | The location name (for classroom courses) |
Webinar tool | String | The webinar tool used |
Session begin date | String | The session begin date |
Session time begin | String | The session start time |
Session timezone | String | The session timezone |
Lang code | String | The language code |
Code | String | The course or learning plan code |
Enroll begin date | String | The date enrollment is valid from |
Enroll date of enrollment | String | The date the enrollment occurred |
Enroll end date | String | The date enrollment is valid until |
Course complete date | String | The course completion date |
Total time | Integer | The total time spent |
Score | Integer | The score achieved |
Image URL | String | The URL of the course image |
URL | String | The URL to access the course |
Rating option | String | The rating option status |
Rating | String | The rating given |
Is new | Boolean | Returns |
Can enter | String | The status indicating if the user can enter |
Can enter reason | String | The reason a user cannot enter |
Duration | Integer | The course duration |
Level | String | The user's level in the enrollment (for example, |
Course count | Integer | The number of courses (for learning plans) |
Soft deadline | String | The soft deadline details |
Course end date | String | The date the course officially ends |
Hidden | Boolean | Returns |
Subscription | Object | Subscription details |
Subscribed | Boolean | Returns |
Is active | Boolean | Returns |
Enrolled sessions | Array of Objects | The details of enrolled sessions |
ID | String | The session ID |
Name | String | The session name |
Description | String | The session description |
Other Info | String | Other info about the session |
Date begin | String | The start date of the session |
Date end | String | The end date of the session |
Min enrollments | Integer | The minimum number of enrollments |
Max enrollments | Integer | The maximum number of enrollments |
Score base | Integer | The base score of the session |
Tool | String | The tool used by the session |
Status | String | The status of the session enrollment |
Dates | Array of Objects | The specific event dates and times within the session. |
Date | String | The event date within the session |
Name | String | The event name within the session |
Time begin | String | The start time of the event |
Time end | String | The end time of the event |
Timezone | String | The timezone of the event |
ID Classroom | Integer | The ID of the classroom the event is linked to |
ID Location | Integer | The ID of the location the event is linked to |
Attendance status | String | The status of the attendance of the user enrolled in the event |
Outdated | Object | Outdated details (for example, compliance) |
Total users | Integer | The total number of enrolled users |
Already marked | Boolean | Returns |
Count | Integer | The number of results in the current page |
Has more data | Boolean | Returns |
Cursor | String | A cursor string for fetching the next page |
Current page | Integer | The current page number |
Current page size | Integer | The number of items returned in the current page |
Total page count | Integer | The total number of pages available |
Total count | Integer | The total number of enrollment records found |
Sort | Object | Details about the sorting applied to the results |
Links | Object | Navigation links ( |
This action calls an internal API.
This action does not generate a webhook event.
Enroll user into a course
Action name: Enroll user into a course
Enrolls a specified user into a course using the provided course ID and user ID. Allows setting the enrollment level and optional validity dates
Input field name | Data type | Description |
User ID | Integer | The user ID to enroll This field is required |
Course ID | Integer | The ID of the course in which the user will be enrolled This field is required |
Level | Integer | The user level. Possible values allowed are:
|
Date begin validity | Date | The start date of the enrollment |
Date end validity | Date | The expiration date of the enrollment |
Enrollment fields | Object | Custom fields related to the enrollment (dynamic fields are shown here) |
Output field Name | Data type | Description |
Enrolled | Array of Objects | List of successfully enrolled users or courses. |
User ID | Integer | The ID of the enrolled user |
Course ID | Integer | The ID of the enrolled course |
Waiting | Boolean | Returns |
This action is equivalent to calling POST/learn/v1/enrollments/{course_id}/{user_id}.
This action will generate the webhook event User enrolled in a course (course.enrollment.created).
Enroll user into a session
Action name: Enroll user into a session
Enrolls a single user into a specific session within a course. Requires user ID, course ID, session ID, and enrollment level.
Input Field Name | Data Type | Description |
User ID | Integer | The user ID to enroll This field is required |
Course ID | Integer | The ID of the course in which the user will be enrolled This field is required |
Level | Integer | The user level. Possible values allowed are:
This field is required |
Session ID | Integer | The session ID in which the user will be enrolled This field is required |
Output Field Name | Data Type | Description |
Enrolled | Array of Objects | List of successfully enrolled users or sessions. |
User ID | Integer | The ID of the enrolled user. |
Course ID | Integer | The ID of the parent course. |
Waiting | Integer | Indicates if the user is in a waiting status. Possible returned values are:
|
This action is equivalent to calling POST/learn/v1/enrollments.
This action will generate the webhook event User enrolled in ILT session (ilt.session.enrollment.created).
Unenroll user from course
Action name: Unenroll user from course
Removes a specific user's enrollment from a given course. Requires the IDs of both the user and the course.
Input Field Name | Data Type | Explanation |
User ID | Integer | The ID of the user to unenroll This field is required |
Course ID | Integer | The ID of the course from which the user will be unenrolled This field is required |
Output Field Name | Data Type | Explanation |
Deleted Enrollment | Integer | The ID of the deleted enrollment record |
This action is equivalent to calling DELETE/learn/v1/enrollment/{course_id}/{user_id}.
This action will generate the webhook event User unenrolled from course (course.enrollment.deleted).
Unenroll user from session
Action name: Unenrolled user from session
Removes a specific user's enrollment from a given session within a course. Requires user ID, course ID and session ID.
Input Field Name | Data Type | Description |
User ID | Integer | The ID of the user to unenroll This field is required |
Course ID | Integer | The ID of the course containing the session from which the user will be unenrolled This field is required |
Session ID | Integer | The ID of the session from which the user will be unenrolled This field is required |
Output Field Name | Data Type | Description |
Success | Boolean | Returns |
This action calls an internal API.
This action does not generate a webhook event.
Unenroll user from learning plan
Action name: Unenrolled user from learning plan
Removes a user's enrollment from a learning plan. Includes options to cascade the unenrollment to all courses within the learning plan and reset tracked data.
Input Field Name | Data Type | Description |
User ID | Integer | The user ID to unenroll This field is required |
Learning Plan ID | Integer | The ID of the learning plan from which the user will be unenrolled This field is required |
Reset tracks | Boolean | If set to |
Unenroll the user from learning plan courses | Boolean | If set to |
Output Field Name | Data Type | Description |
Unenrolled | Array of Integers | An array of user IDs that were successfully unenrolled. |
This action is equivalent to calling DELETE/learn/v1/enrollments.
This action will generate the webhook event Learning plan enrollment deleted (learningplan.enrollment.deleted). If the user is also unenrolled from a course or courses, each course unenrollment will trigger the User unenrolled from course (course.enrollment.deleted) webhook event also.
Get Course Enrollments
Action name: Get Course Enrollments
Retrieves a list of enrollment records specifically for courses. Allows for filtering by user, course, type and status. It also provides sorting options.
Input Field Name | Data Type | Description |
User IDs | Array of Integers | The user IDs to filter the results by |
Course IDs | Array of Integers | The course IDs to filter the results by |
Course Types | String | The course types to filter the results by. Possible values are:
|
Enrollment Levels | String | The enrollment levels to filter the results by. Possible values are:
|
Enrollment Status | String | Enrollment status to filter the results. Possible values are:
|
Page | Integer | The page to return. The default value is |
Page size | Integer | The maximum number of results per page |
Sort by | String | It sorts the result by the selected attribute. Possible values are:
|
Sorting direction | String | The sorting direction. Possible values:
|
Output Field Name | Data Type | Description |
Items(List of Enrollment Records) | Array of Objects | The repeatable list of enrollment records for courses |
User ID | Integer | The ID of the enrolled user |
Username | String | The user's username |
Course ID | Integer | The ID of the enrolled course |
Course uid | String | The unique identifier of the course |
Course code | String | The code of the course |
Course name | String | The name of the course |
Course type | String | The type of course (for example, |
Course begin date | String | The official begin date for the course content |
Course end date | String | The official end date for the course content |
Enrollment level | String | The user's level in the enrollment (for example, |
Enrollment status | String | The current status of the enrollment (for example, |
Enrollment created by | Integer | The ID of the user who performed the enrollment |
Enrollment created at | String | The date the enrollment was created |
Enrollment validity begin date | String | The date the enrollment validity begins |
Enrollment validity end date | String | The date the enrollment validity ends |
Enrollment date last updated | String | The last date the enrollment status was updated |
Enrollment completion date | String | The date the enrollment status became completed |
Enrollment score | Integer | The score achieved in the course |
Enrollment time spent | Integer | The time spent in the course (in seconds) |
Count | Integer | The number of results in the current page |
Has more data | Boolean | Returns |
Cursor | String | The cursor string for fetching the next page |
Current page | Integer | The current page number |
Current page size | Integer | The number of results per page returned |
Total page count | Integer | The total number of pages available |
Total count | Integer | The total number of all matching records |
Sort (Sort Information) | Array of Objects | The details about the sorting applied to the results |
Sort by | String | The attribute the results are sorted by. For example, |
Sorting direction | String | The sorting direction. Possible values are:
|
This action is equivalent to calling GET/course/v1/courses/enrollments.
This action does not generate a webhook event.
Get Learning Plan Enrollments
Action name: Get Learning Plan Enrollments
Retrieves a list of enrollment records specifically for learning plans. Allows for filtering by user, learning plan ID and status. It also provides sorting options.
Input Field Name | Data Type | Description |
User IDs | Array of Integers | An array of user IDs to filter the results by |
Learning Plan IDs | Array of Integers | An array of learning plan IDs to filter the results by |
Enrollment Status | String | The enrollment status to filter the results by. Possible values are:
|
Page | Integer | The page to return. The default value is |
Page size | Integer | The maximum number of results per page |
Sort by | String | Set the attribute to sort the results by. Possible values are:
|
Sorting direction | String | The sorting direction. Possible values are:
|
Output Field Name | Data Type | Description |
Items (List of Enrollment Records) | Array of Objects | The repeatable list of enrollment records for learning plans |
User ID | Integer | The ID of the enrolled user |
Username | String | The user's username |
Learning plan ID | Integer | The ID of the enrolled learning plan |
Learning plan name | String | The name of the learning plan |
Learning plan code | String | The code of the learning plan |
Enrollment status | String | The current status of the enrollment (for example, |
Enrollment created by | Integer | The ID of the user who performed the enrollment |
Enrollment created at | String | The date the enrollment was created |
Enrollment validity begin date | String | The date the enrollment validity begins |
Enrollment validity end date | String | The date the enrollment validity ends |
Enrollment date last updated | String | The last date the enrollment status was updated |
Enrollment completion date | String | The date the enrollment status became completed |
Enrollment completion percentage | Integer | The completion percentage achieved in the learning plan |
Enrollment time spent | Integer | The time spent in the learning plan (in seconds) |
Count | Integer | The number of results in the current page |
Has more data | Boolean | Returns |
Cursor | String | The cursor string for fetching the next page |
Current page | Integer | The current page number |
Current page size | Integer | The number of results per page returned |
Total page count | Integer | The total number of pages available |
Total count | Integer | The total number of all matching records |
Sort (Sort Information) | Array of Objects | Details about the sorting applied to the results |
Sort by | String | The attribute used for sorting |
Sorting direction | String | The sorting direction |
This action is equivalent to calling GET/learningplan/v1/learningplans/enrollments.
This action does not generate a webhook event.
Get Learning Plan Course Enrollments
Action name: Get Learning Plan Course Enrollments
Retrieves enrollment details for courses within a specified learning plan. Allows for filtering by user, course, type and status specific to the courses inside the learning plan.
Input Field Name | Data Type | Description |
Learning Plan ID | Integer | The learning plan ID to filter the results by. This field is required. |
User IDs | Array of Integers | The user IDs to filter the results by |
Course IDs | Array of Integers | The course IDs to filter the results by |
Course Types | String | The course types to filter the results by. Possible values are:
|
Enrollment Levels | String | The enrollment levels to filter the results by. Possible values are:
|
Enrollment Status | String | The enrollment status to filter the results by. Possible values are:
|
Page | Integer | The page to return. The default value is |
Page size | Integer | The maximum number of results per page |
Sort by | String | Set an attribute to sort the results by. Possible values are: Possible Values:
|
Sorting direction | String | The sorting direction. Possible values are:
|
Output Field Name | Data Type | Description |
Items(List of Enrollment Records) | Array of Objects | The repeatable list of enrollment records for courses inside the Learning Plan |
User ID | Integer | The ID of the enrolled user |
Username | String | The user's username |
Course ID | Integer | The ID of the enrolled course |
Course uid | String | The unique identifier of the course |
Course code | String | The code of the course |
Course name | String | The name of the course |
Course type | String | The type of course (for example, |
Course begin date | String | The official begin date for the course content |
Course end date | String | The official end date for the course content |
Enrollment level | String | The user's level in the course enrollment (for example, |
Enrollment status | String | The current status of the enrollment (for example, |
Enrollment created by | Integer | The ID of the user who performed the enrollment |
Enrollment created at | String | The date the enrollment was created |
Enrollment validity begin date | String | The date the enrollment validity begins |
Enrollment validity end date | String | The date the enrollment validity ends |
Enrollment date last updated | String | The last date the enrollment status was updated |
Enrollment completion date | String | The date the enrollment status became completed |
Enrollment score | Integer | The score achieved in the course |
Enrollment time spent | Integer | The time spent in the course (in seconds) |
Count | Integer | The number of results in the current page |
Has more data | Boolean | Returns |
Cursor | String | Cursor string for fetching the next page |
Current page | Integer | The current page number |
Current page size | Integer | The number of results per page returned |
Total page count | Integer | The total number of pages available |
Total count | Integer | The total number of all matching record |
Sort (Sort Information) | Array of Objects | Details about the sorting applied to the results |
Sort by | String | The attribute used for sorting |
Sorting direction | String | The sorting direction |
This action is equivalent to calling GET/learningplan/v1/learningplans/{learning_plan_id}/courses/enrollments.
This action does not generate a webhook event.
Batch update RSVP event
Action name: Batch update RSVP event
Performs a batch update of the RSVP (Response) status for multiple users on a specific event. Required event ID and an array of user responses.
Input Field Name | Data Type | Description |
Items | Array of Objects | An array where each object is a user and their RSVP response This field is required |
User ID | Integer | The user ID This field is required if the field User email is not populated |
User email | String | The user email address This field is required if the field User ID is not populated |
User RSVP response | Integer | The user's response. Possible values are:
This field is required |
Event ID | Integer | The ID of the event for which to update the RSVP This field is required |
Synchronization timestamp | Date/Time | Timestamp to control synchronization |
Output Field Name | Data Type | Description |
Data | Array of Objects | An array of results for each processed user or item |
Row index | Integer | The index of the item from the input array |
Success | Boolean | Returns |
Message | String | A message detailing the result or error for the item |
This action calls an internal API.
This action does not generate a webhook event.