Best Answer

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

  • 13 March 2024
  • 1 reply
  • 34 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!!!!!!

icon

Best answer by Bfarkas 17 March 2024, 02:37

View original

1 reply

Userlevel 7
Badge +3

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