This data can be used by external frontends or other apps. The list of course enrollments can optionally be filtered by course id or usernames.