Skip to content

scele people

List the people enrolled in a course.

people lists everyone enrolled in a course together with their roles (students, teachers, non-editing teachers, and so on).

It is the command to reach for when you need a person's user id (to read their forum posts) or simply want to know who is teaching a section.

Usage

scele people <course_id>

Arguments

Argument Required
course_id yes

Example

scele people 4234

Output

Output of scele people

Returns:

Person[]

Person

Field Type
id string
name string
roles string[]
email string
groups string[]

Notes

  • Large courses return large lists; pipe through jq 'map(select(.roles | index("Teacher")))' to keep just the staff.
  • Some courses restrict the participants list. If SCELE refuses, you get request_failed with Moodle's own message.

See also

course-detail ยท courses