Skip to main content
Best Answer

How can I use API to fetch employee all courses and course completion?

  • 13 March 2024
  • 2 replies
  • 161 views

I spend quite a lot of time on finding the solution through Docebo API explorer, but the only solution i find is /learn/v1/courses/report?idCourse=113. Then it returns all the user for this course.

 

But I want to find a single user and check what courses he got assigned has been completed. The exploration I had above will make the fetch logic super complicated, because I will have to find each course and figure out if the user has completed or not?

 

Please help me out!!!!!!

2 replies

Userlevel 7
Badge +4

Yeah, thats not the logic used in the system unfortunately. As you found, its more course level based enrollments/completions >User rather than User>Enrollment/completions.

I often use the ‘Users > Courses’ report for this instead, and if you need it to be in the API, you can build the report and then use the API to get the current results. This will also help you on bulk calls here since the report is managing the heavy lifting for you.

Hi,

 

I want to send a reminder to users who havent done a certain LO (learning object ID) which should be seen if the status is completed in docebo. Similar I guess the reporting section as shown below. Would you know how to get this from the API from a specific course from a specific user?


I can see that it is within the system but can not figure out how to get this information from the API for a specific user.

 

when looking at the page parameters it comes to this:
 

  1. r:

    player/report/byUser

  2. course_id:

    2

  3. user_id:

    13053

 

If you know where this would be, that would be very helpful.

Yeah, thats not the logic used in the system unfortunately. As you found, its more course level based enrollments/completions >User rather than User>Enrollment/completions.

I often use the ‘Users > Courses’ report for this instead, and if you need it to be in the API, you can build the report and then use the API to get the current results. This will also help you on bulk calls here since the report is managing the heavy lifting for you.

 

 

Reply