Course modules

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.

Intermediate10 minFor: Owner / Admin· Last checked 2026-11-13
Video tutorial coming soon

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. 1

    Open the Moodle settings

    /settings

    Go 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. 2

    Enter your Moodle details

    /settings/moodle

    Type 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. 3

    Turn the sync on and save

    /settings/moodle

    Tick Enable Moodle grade sync and click Save.

    You should see: A green Saved. message.

  4. 4

    Test the connection

    /settings/moodle

    Click Test connection.

    You should see: A green Connected to <your Moodle site name>. message and Last connected to: <site name>.

  5. 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. 6

    Pull everyone's grades now

    /settings/moodle

    In 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. 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.

Related lessons

Finished this lesson?