List Course Users
list_course_usersList users in a course with optional Canvas filters. Use include to request email, enrollments, avatar_url, bio, and other fields otherwise omitted from the default response.
Instructions
List users in a course with optional Canvas filters. Use include to request email, enrollments, avatar_url, bio, and other fields otherwise omitted from the default response. Use enrollment_type / enrollment_state to narrow by role or status, search_term to filter by name/login, user_ids to fetch a specific subset, and sort/order to control ordering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort field | |
| order | No | Sort order | |
| include | No | Extra fields to include on each user (Canvas include[] param) | |
| user_ids | No | Restrict the result to the given user IDs (pass large IDs as strings). SIS user IDs may be given as "sis_user_id:<sis id>". | |
| course_id | Yes | The Canvas course ID | |
| search_term | No | Partial name or full login/SIS ID to filter users by | |
| enrollment_type | No | Filter by one or more enrollment types | |
| enrollment_state | No | Filter by enrollment state (e.g. active, invited) |