MediaWiki:Apihelp-liststudents-param-group/en

If given, the query will group students by course.