How to Access Classlist of Section Courses via Brightspace API?

Jerry.L.830
Jerry.L.830 Posts: 1 Analytics Builder Transition
edited October 7 in Development

Hi everyone,

I'm working with the Brightspace API and have successfully retrieved the classlist of a crosslisted (parent) course using:

GET /d2l/api/le/(version)/(orgUnitId)/classlist/

However, when I try to use the same endpoint to get the classlist of its section courses, I receive a 403 Forbidden error.

I've reviewed the D2L documentation but couldn't find a method to directly access the classlist of section org units. Is there an alternative API endpoint or recommended approach to retrieve the list of learners enrolled in a specific section?

Any guidance or examples would be greatly appreciated!

Thanks in advance.

Jerry

Tagged:

Answers

  • Roqeeb.O.922
    Roqeeb.O.922 Posts: 23 🤝🏼

    Hi @Jerry.L.830 ,

    Thank you for reaching out in the Brightspace Community. 

    The classlist API endpoint you provided above can be used to retrieve the classist information for courses and associated sections independently.

    The 403 Forbidden error you receive is most likely due to you not having permission to view the classlist in those particular org units.

    To fix this, please make sure you have the permission to view the classlist in the learning environment (GUI) first, and you should then be able to access that with the API.

    If you are able to access the classlist with the GUI at brightspace.com and are not able to do that with the API, please reach out to your Approved Support Contacts so that they can create a support ticket for this and for us to investigate further.

    Please keep us posted if this resource was helpful in completing your intended workflow. 

    Kind regards, 

    Roqeeb.