def get_enrollments_for_section(self, section_id, params={}):
url = SECTIONS_API.format(section_id) + "<STR_LIT>"<EOL>enrollments = []<EOL>for datum in self._get_paged_resource(url, params=params):<EOL><INDENT>enrollments.append(CanvasEnrollment(data=datum))<EOL><DEDENT>return enrollments<EOL>
Return a list of all enrollments for the passed section_id.

https://canvas.instructure.com/doc/api/enrollments.html#method.enrollments_api.index