A user's role in a course determines what the user can do in that course. Later in the book, we'll discuss Moodle's built-in roles in detail, how to customize roles, and how to create new ones. For now, let's look at the built-in roles that Moodle gives you in a standard installation:
A user can have a role in the site and a role in a course.
When you use a flat file to enroll students in a course(s), the file specifies what role each user will have in the course. Let's return to our example:
add, student, 007, WP102
The preceding line from the file specifies that the user ID number 007 will be added as a student to the course ID number ...