Bring Moodle grades into Cohort every night
Connect Moodle once and Cohort pulls each current student's course totals every night. Learn what's matched, what's skipped and how to sync right now.
The written steps below are complete. Producing the video? Use the video script tab — it follows these steps one for one.
If your instructors mark in Moodle, Cohort can copy each course total onto the student's record so transcripts and GPAs use the Moodle marks. Once Moodle is connected and enabled, Cohort runs a sync every night at 08:30 UTC (3:30 a.m. Eastern in winter, 4:30 a.m. in summer) for every student with an active or on-hold program enrolment. It also syncs a student just before you issue their transcript. Students are matched by email; Moodle courses are matched to Cohort courses by ID number, short name or course name. You can still pull grades straight away for one student or for everyone.
By the end you can
- Connect your Moodle site and turn on grade sync
- Understand what the nightly sync does and what it skips
- Pull grades now for every student or for one student
- Fix the usual reasons a mark doesn't come through
Before you start
- An Owner or Admin login. The Moodle page and the sync buttons are for Owners and Admins only.
- A Moodle Web Services token with these functions: core_webservice_get_site_info, core_user_get_users, core_enrol_get_users_courses and gradereport_user_get_grade_items.
- Each Moodle course's ID number set to the matching Cohort course code (for example PSW001 for PSW-01).
Step by step
- 1
Open the Moodle settings
/settingsGo to Settings, find the Moodle integration card and click Connect Moodle.
You should see: A page titled Moodle integration with a Connection card and a Sync all grades card.
- 2
Enter your Moodle details
/settings/moodleType your Moodle site URL (for example https://moodle.lakeshorecollege.ca) and paste the Web Services token.
You should see: Once saved, the token box shows •••••••• (saved — leave blank to keep).
- 3
Turn the sync on and save
/settings/moodleTick Enable Moodle grade sync and click Save.
You should see: A green Saved. message.
- 4
Test the connection
/settings/moodleClick Test connection.
You should see: A green Connected to <your Moodle site name>. message and Last connected to: <site name>.
- 5
Let the nightly sync run
/students/[id]Wait until the next morning, then open a current student's page and look at the Academics card.
You should see: Each matched course shows the Moodle course total as a percentage, with its letter and Pass or Fail, and the program GPA is updated.
- 6
Pull everyone's grades now
/settings/moodleIn the Sync all grades card click Sync all students' grades now.
You should see: A summary such as Synced 184 grades across 61 students · 3 not matched in Moodle. and, under No grades pulled for:, each missed student with the reason.
- 7
Pull one student's grades now
/students/[id]On the student's page click Sync grades from Moodle (under the Academics card).
You should see: A green message such as Synced 6 course grades from Moodle.
Tips
- What the nightly sync skips: students without an active or on-hold program enrolment; students with no email; students whose email has no Moodle account; Moodle courses that don't match a Cohort course on the student's record; and Moodle courses with no course total yet.
- A Moodle course with no grade yet never wipes a mark typed in Cohort. When Moodle does have a grade for that course, the Moodle mark replaces the typed one on the next sync.
- If two Cohort courses look the same to the matcher (same normalized code or name), Cohort refuses to guess and skips that Moodle course. Give the Moodle course a unique ID number.
- Sync all students' grades now includes every student on file, not only current ones, 250 students at a time. When the summary says first 250 done — click Continue for the next batch, click Continue with the next batch until the button disappears.
- Issuing a transcript runs a quick sync for that student first, so the transcript has the latest Moodle marks.
Troubleshooting
- Moodle isn't connected. Set it up in Settings → Moodle.
- Moodle isn't enabled, or the URL or token is missing. Open Settings → Moodle, fill both, tick Enable Moodle grade sync and click Save.
- Student has no email to match in Moodle. or No Moodle user found for <email>.
- Cohort finds the student in Moodle by email. Add the email to the student, or make sure it is exactly the email on their Moodle account.
- The message ends … Moodle course(s) had no matching Cohort course code.
- Those Moodle courses didn't match a course on the student's Cohort record. Set the Moodle course ID number to the Cohort course code, and check the student is enrolled in that course in Cohort.
- A mark still won't come through.
- Type it by hand (see the lesson on typing a course mark). If Moodle later sends a grade for that course, it replaces the typed mark.
- This page is restricted to Owners and Admins.
- Ask an Owner or Admin to connect Moodle or run the sync.
Shot list for recording this lesson — about 2:26 long. Record in a sample college with made-up students only, and follow the recording standards.
- 0:00Title card
- Show
- Title Bring Moodle grades into Cohort every night over the Cohort logo, then the first screen (/settings) with sample data.
- Say
- Connect Moodle once and Cohort pulls each current student's course totals every night. Learn what's matched, what's skipped and how to sync right now. By the end you'll be able to connect your Moodle site and turn on grade sync, understand what the nightly sync does and what it skips, pull grades now for every student or for one student, fix the usual reasons a mark doesn't come through.
- Cut
- When the narration ends.
- 0:32Step 1: Open the Moodle settings
- Show
- Screen /settings. Do: Go to Settings, find the Moodle integration card and click Connect Moodle.
- Say
- Go to Settings, find the Moodle integration card and click Connect Moodle. A page titled Moodle integration with a Connection card and a Sync all grades card.
- Cut
- Hold on the result until it is clearly visible: A page titled Moodle integration with a Connection card and a Sync all grades card.
- 0:47Step 2: Enter your Moodle details
- Show
- Screen /settings/moodle. Do: Type your Moodle site URL (for example https://moodle.lakeshorecollege.ca) and paste the Web Services token.
- Say
- Type your Moodle site URL (for example https://moodle.lakeshorecollege.ca) and paste the Web Services token. Once saved, the token box shows •••••••• (saved — leave blank to keep).
- Cut
- Hold on the result until it is clearly visible: Once saved, the token box shows •••••••• (saved — leave blank to keep).
- 1:02Step 3: Turn the sync on and save
- Show
- Screen /settings/moodle. Do: Tick Enable Moodle grade sync and click Save.
- Say
- Tick Enable Moodle grade sync and click Save. A green Saved. message.
- Cut
- Hold on the result until it is clearly visible: A green Saved. message.
- 1:11Step 4: Test the connection
- Show
- Screen /settings/moodle. Do: Click Test connection.
- Say
- Click Test connection. A green Connected to <your Moodle site name>. message and Last connected to: <site name>.
- Cut
- Hold on the result until it is clearly visible: A green Connected to <your Moodle site name>. message and Last connected to: <site name>.
- 1:22Step 5: Let the nightly sync run
- Show
- Screen /students/[id]. Do: Wait until the next morning, then open a current student's page and look at the Academics card.
- Say
- Wait until the next morning, then open a current student's page and look at the Academics card. Each matched course shows the Moodle course total as a percentage, with its letter and Pass or Fail, and the program GPA is updated.
- Cut
- Hold on the result until it is clearly visible: Each matched course shows the Moodle course total as a percentage, with its letter and Pass or Fail, and the program GPA is updated.
- 1:42Step 6: Pull everyone's grades now
- Show
- Screen /settings/moodle. Do: In the Sync all grades card click Sync all students' grades now.
- Say
- In the Sync all grades card click Sync all students' grades now. A summary such as Synced 184 grades across 61 students · 3 not matched in Moodle. and, under No grades pulled for:, each missed student with the reason.
- Cut
- Hold on the result until it is clearly visible: A summary such as Synced 184 grades across 61 students · 3 not matched in Moodle. and, under No grades pulled for:, each missed student with the reason.
- 2:02Step 7: Pull one student's grades now
- Show
- Screen /students/[id]. Do: On the student's page click Sync grades from Moodle (under the Academics card).
- Say
- On the student's page click Sync grades from Moodle (under the Academics card). A green message such as Synced 6 course grades from Moodle.
- Cut
- Hold on the result until it is clearly visible: A green message such as Synced 6 course grades from Moodle.
- 2:16Outro
- Show
- End card: mycohort.org/help/moodle-nightly-grades and Start your free 30-day trial — mycohort.org.
- Say
- That's it. The written steps for this lesson are on mycohort.org/help/moodle-nightly-grades. To try it on your own college, start your free 30-day trial at mycohort.org.
- Cut
- Hold the end card for 5 seconds.
YouTube chapters: use each shot's time and title. First line of the description: mycohort.org/help/moodle-nightly-grades
Related lessons
When Moodle has no grade for a course, type the student's mark in Cohort so their transcript and GPA are complete. Moodle still wins if it sends one later.
Print an unofficial transcript from the student's page, or issue the official PDF transcript. Cohort pulls the latest Moodle grades first.
See where a student's GPA appears, how percentages become letters on the 4.0 scale, how pass marks work and when the GPA is recalculated.
Files students submit to Moodle assignments, and instructors' feedback files, appear on the student's page, on My students and in the student's portal.