Sync Users¶
Sync enrolled students from Moodle to the hub allowlist and gradebook.
From Moodle¶
Fetch enrolled participants and sync to the hub and local gradebook:
This command:
- Fetches participants from the first Moodle assignment via the API
- Updates the local gradebook with student full names (for grader display)
- Pushes the username list to the hub's
/sync-usersendpoint (if--hub-urlprovided)
If --hub-url is omitted, writes allowed_users.txt locally instead of
pushing to a remote hub.
Use --dry-run to preview the user list without syncing.
Requires mograder moodle sync to be run first to populate assignment metadata.
Manual (HTTPS transport)¶
For non-Moodle deployments, upload a username list from a file:
The file should contain one username per line (# comments allowed).
This updates the hub allowlist only (no gradebook names).