From HR to the learning platform

Connecting Moodle to the HR system: accounts, cohorts and suspension on departure

Connecting Moodle to the HR system means every employee gets an account with a fixed number from HR, becomes a member of the cohorts of their department and job, and is suspended rather than deleted after departure. KoppelHet builds this from AFAS, Nmbrs, Workday and Visma Raet YouForce, and can put completed mandatory courses back into the HR system.

What it is

Moodle is open source and runs on an own server or with a hosting party. The administrator sets up courses and enrols employees through cohorts: groups of users at site level. Who belongs in which cohort follows from department and job in HR.

Without an integration someone periodically uploads a CSV with users and cohort columns. New employees miss their induction course, a transfer changes nothing about their courses, and leavers can keep logging in.

How the integration handles it

  • With cohort sync Moodle enrols all members of a cohort in a course and unenrols anyone who leaves the cohort. KoppelHet only manages membership; which course hangs on which cohort is up to the Moodle administrator.
  • A user can be in several cohorts. The integration puts an employee in the cohort of their department and in that of their job, so a course for one department and a course for one job each reach the right people.
  • The fixed number from HR goes into the idnumber field. Usernames in Moodle are always lowercase, so the integration finds existing users by idnumber and not by username.
  • By default Moodle blocks two accounts with the same email address. Employees without a work address do not get an account with a private or shared address; they go on a list for HR.
  • After the end date the integration suspends the account. A suspended user cannot log in, but their course results remain, and suspension can be reversed; deletion cannot.
  • Employer and department go into the standard profile fields institution and department, so reports in Moodle can be filtered by employer and department without custom fields.

Edge cases we handle

  • When creating through the web service Moodle cannot set a suspension. An employee recorded weeks ahead in HR is created and suspended straight away; on the first working day the integration lifts the suspension.
  • Nmbrs numbers employees per company. The company therefore precedes the employee number in idnumber, so two employees with the same number in different companies do not merge.
  • Cohorts are flat, while the organisation in Workday is a tree. Each organisation becomes its own cohort, and the parent organisation goes into the department profile field.
  • With several employments in YouForce someone gets one account and the cohort of each unit they work in, instead of choosing one employment.
  • Moodle returns completion per user per course. For the flow back to HR the integration only requests the mandatory courses of active employees.

What KoppelHet does

The first integration sets up accounts and cohorts and suspends on departure. Completed courses back to the HR file can follow later as an extension. The Moodle web service token only gets the functions for users, cohorts and, with that extension, completion.

Common integrations

Frequently asked questions

Does the integration also enrol employees in courses?

Indirectly. The integration puts employees into cohorts, and Moodle enrols them through cohort sync in the courses the administrator attaches to that cohort.

What happens with a former employee who returns?

The suspended account is found by idnumber and reopened, with the earlier course results.

Does this work with single sign-on?

Yes. The integration then creates users with your environment's sign-in method and without a password.

More on Training and certificates

Training and certificates: the overview

Which systems do you want to connect?

Tell us which systems you use and what should happen automatically. Together we define the smallest working solution, with a clear design and a quote before building.