Skip to main content
Best Answer

Automatically Archive Offering Enrollments Every 6 Months

  • May 29, 2024
  • 5 replies
  • 311 views

smallc
Helper I
Forum|alt.badge.img+3

Hello wise Docebo Community. We currently reuse our courses, and I’m exploring options to automatically archive enrollments every 6 months. Does anyone know of a way to automate that or is it only a manual process? Thank you!

Best answer by KMallette

Hi, Catherine … that’s what I was saying. I think the API approach is a true ‘delete’ the enrollment rather than ‘archive’ the enrollment. There would be no historical information.

5 replies

KMallette
Hero II
Forum|alt.badge.img+9
  • Hero II
  • May 29, 2024

Hi, @smallc 

Depending on your skills/resources, you have two options:

  1. Archive/Unenroll in Course Management > Enrollments … Select the users you wish to unenroll, and then use Choose Action > Archive/Unenroll. This is a manual process for each course. This method does retain the list of archived enrollments for historical purposes.
  2. If you can use APIs, or have access to someone who can, you can use the learn/v1/enrollment endpoints. There are several options there depending on the course type, etc. I didn’t find an endpoint during my quick check that specifically tracked the “archive” status vs. just unenrolling, but it might be there. So this method may simply give you a “remove enrollments” rather than a “retire enrollment” behavior.

smallc
Helper I
Forum|alt.badge.img+3
  • Author
  • Helper I
  • May 29, 2024

Hi @KMallette ,

Thanks you for your reply and insights. I’m curious, if I use the API learn/v1/enrollment endpoints to unenroll learners, will this method retain the list of enrollments for historical purposes? 


KMallette
Hero II
Forum|alt.badge.img+9
  • Hero II
  • Answer
  • May 29, 2024

Hi, Catherine … that’s what I was saying. I think the API approach is a true ‘delete’ the enrollment rather than ‘archive’ the enrollment. There would be no historical information.


Forum|alt.badge.img

Historical information is available for archived enrollments through both the GUI and the APIs.

Through the GUI..

From Course | Enrollments, filter for “Archived Enrollments” (the default view is “Active Enrollments”.

OR
From Course | Reports, filter for “Archived Enrollments” (the default view is “Active Enrollments”.

Through APIs

Select “Enrollment” in the ‘Services’ dropdown.

There are six (6) variant “RETURN” APIs for archive enrollments ‘GET’ call.

There are two (2) variant “UPDATE” APIs to archive enrollment(s) ‘POST’ call.

Add the following to your already logged in Docebo company base URL to view the APIs available for Archive Enrollments:

/api-browser/#!/enrollment/UsersArchive/UsersArchive_enrollment_v1_users_user_id_courses_archives

..

As far as how Archive Enrollments works in Docebo…

There are two options either through GUI or API call.

through API call:

  • reset_tracking” (learning material tracks) -- true / false
  • “enrollment_mode” (unenroll or re-enroll) -- delete / reset

through GUI:

Select one of the following options:

  • Archive and Re-Enroll
  • Archive and Unenroll

Enable / Disable the option -- “Reset the tracking of the course material”

 

 

 

 


smallc
Helper I
Forum|alt.badge.img+3
  • Author
  • Helper I
  • June 3, 2024

@shane_hutchison thank you for this clarification. Being able to retain the data after unenrolling users from a course will be very beneficial to us!