List Enrollments
list_enrollmentsList every enrollment the authenticated user holds across all of their Canvas courses — the caller's own enrollments only.
Instructions
List every enrollment the authenticated user holds across all of their Canvas courses — the caller's own enrollments only. Use list_course_enrollments for a single course's full roster, including a user_id filter to focus on one person. Optional type, state, and role filters and the include array mirror Canvas's own GET /users/self/enrollments endpoint. Fetches every page (100 per request) and fails with a 'Results are incomplete' error instead of silently truncating. When pseudonymization is enabled, each enrollment classified as student or unknown has its nested user object replaced with that course's pseudonym and sis_user_id cleared before the result is returned; staff enrollments (TeacherEnrollment, TaEnrollment, DesignerEnrollment) are left as-is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Filter by enrollment role names (as defined in the Canvas account) | |
| type | No | Filter by one or more enrollment types | |
| state | No | Filter by one or more enrollment states | |
| include | No | Extra fields to include on each enrollment (Canvas include[] param) | |
| grading_period_id | No | Return enrollments scoped to this grading period | |
| enrollment_term_id | No | Limit to enrollments in the given term |