Get all users of a course

Get all users of a course

by Ralf Schnickmann -
Number of replies: 2

Hi,

I'm running Moodle 2.1 and i like to know in which database table i can find all the users of a course.

In Moodle 1.9 I found them all in the table course_display.

Thanks, Ralf

Average of ratings: -
In reply to Ralf Schnickmann

Re: Get all users of a course

by Ann Adamcik -

course_display won't necessarily get you all users in a course. To do this, you need to look at the course, context, and role_assignments tables.