Skip to main content

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!!!!!!

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.

 

 


I think I’ve come up with a way to get a transcript via the API for an individual student by leveraging one of the merge functions.

https://www.YOUR URL.com/manage/v1/user/USERID/merge//enrollments

You can put an ID between ...merge/  and …/enrollments, but it does not seem to be necessary.  Limitation: This method does not work for SuperAdmins or Power Users.

This returns the following which can be filtered as needed:

{
    "data": {
        "items": Â
            {
                "course_id": 123,
                "course_name": "Sample Course #1",
                "type": "elearning",
                "lang_code": "en",
                "code": "Sample Course Code #1",
                "users": {
                    "source": {
                        "id": 12345,
                        "status": 2,
                        "status_label": "Completed on 04/08/23 (score: )",
                        "score": null,
                        "date_complete": "2023-08-04 13:42:47",
                        "date_first_access": null,
                        "date_last_access": null,
                        "selected": true
                    },
                    "destination": {
                        "id": null,
                        "status": null,
                        "status_label": null,
                        "score": null,
                        "date_complete": null,
                        "date_first_access": null,
                        "date_last_access": null,
                        "selected": false
                    }
                }
            },
            {
                "course_id": 456,
                "course_name": "Sample Course #2",
                "type": "elearning",
                "lang_code": "en",
                "code": "Sample Course Code #2",
                "users": {
                    "source": {
                        "id": 12345,
                        "status": 2,
                        "status_label": "Completed on 03/03/23 (score: )",
                        "score": null,
                        "date_complete": "2023-03-03 20:18:29",
                        "date_first_access": null,
                        "date_last_access": null,
                        "selected": true
                    },
                    "destination": {
                        "id": null,
                        "status": null,
                        "status_label": null,
                        "score": null,
                        "date_complete": null,
                        "date_first_access": null,
                        "date_last_access": null,
                        "selected": false
                    }
                }
            },
...etc...
            }
        ],
        "count": 2,
        "has_more_data": false,
        "cursor": null,
        "current_page": 1,
        "current_page_size": 200,
        "total_page_count": 1,
        "total_count": 20,
        "sort": "
            {
                "sort_attr": "id",
                "sort_dir": "desc"
            }
        ]
    },
    "version": "1.0.0",
    "_links": ]
}


Reply