Videos
Blogs
August 22, 2023
How to pull Module quiz score for learners using GET /users/{id}/enrollments API
In some specific use cases, admin is required to pull the quiz score for individual modules inside the course and the module names using the API.
We use Admin API :
GET /users/{id}/enrollments
We can fetch the score of the individual modules using relationship “loResourceGrades”
To fetch the details, pass ‘include’ query parameter with loResourceGrades value as part of the enrollment endpoint
Sample request URL :
https://learningmanager.adobe.com/primeapi/v2/users/7546252/enrollments?include=loResourceGrades&page[limit]=10&filter.loTypes=course&sort=dateEnrolled
However, this endpoint does not pull quiz scores from courses that are part of learning paths.
This is possible through learner API only. We do not support this in admin API.
To fetch module score for learning path you can use learningObject endpoint with include {subLOs.enrollment.loResourceGrades}.
Similar Blogs
Subscribe to our newsletter
Subscribe now
That's it! Thank you for subscribing to our newsletter!
The Adobe family of companies may keep
me informed with personalized
emails about ELearning Community Content and News. See our Privacy Policy for more details or to opt-out at
any time.