LMS integration architecture is how your learning platform connects to the systems that already know who your people are, what they bought and what they need to learn: the identity provider, the HR system, the CRM, the payment provider, content and video tools, and your reporting stack. Done well, accounts appear before day one, access follows purchases and job changes on its own, and completions show up wherever managers, auditors and sales teams look, with nobody exporting CSV files on a Friday afternoon.
This guide is the hub for our integration articles. It covers the integration families worth planning, the patterns that move data between systems, how single sign-on and provisioning work in practice, HR, CRM and payment flows, learning tools such as LTI and live classes, and what the APIs and event hooks of the main platforms actually offer. It ends with the security and operations work that keeps integrations running after launch.
Checked against Moodle 5.3 (build 20261005), the LearnDash 4.18.0.1 source (5.x changes only from LearnDash's own release notes), LifterLMS 8.0.1 with its bundled REST library 1.0.2, Tutor LMS and Tutor LMS Pro 4.1.3, and the Microsoft Entra ID, Instructure and Open edX documentation as of October 2026.
What an LMS integration connects
Most organisations need some combination of eight integration families. Listing them up front, with the direction of data and the mechanism you expect to use, is the fastest way to size a project and spot the hard parts early.
| Family | Typical systems | Into the LMS | Out of the LMS | Usual mechanism |
|---|---|---|---|---|
| Identity and SSO | Microsoft Entra ID, Okta, Google Workspace, Active Directory, Shibboleth | Authentication, profile attributes, group claims | Rarely anything | SAML 2.0, OpenID Connect, LDAP |
| Provisioning and HR | HRIS, payroll, directory | Joiners, movers, leavers, department, manager, location | Completions, certifications, expiry dates | SCIM, scheduled sync, CSV or database feeds, API |
| CRM and customer data | Salesforce, HubSpot, Zoho CRM | Accounts, contacts, entitlements | Enrolment, progress and certification summaries | Webhooks, API, iPaaS |
| Commerce and payments | Stripe, PayPal, Razorpay, WooCommerce, Shopify | Payments, refunds, subscription status | Customer and product references | Signed payment webhooks |
| Learning tools and content | LTI tools, SCORM and xAPI packages, H5P, content libraries | Activities, grades, launch context | Roster and grade data to the tool | LTI 1.3, packaged content, xAPI to an LRS |
| Live classes and video | BigBlueButton, Zoom, Google Meet, video hosts | Attendance, recordings, watch data | Session schedules, registrants | Plugin or add-on calling the vendor API |
| Communication | Email platforms, chat, notification services | Rarely anything | Nudges, reminders, announcements | Events or webhooks to a messaging API |
| Data and reporting | Data warehouse, BI tools, learning record store | Rarely anything | Events, completions, grades, logs | Scheduled export, event stream, reporting API |
A sensible order for most programmes is identity first, then provisioning, then sending completions to the system that needs them, and only then the rest. Identity decides how every other system recognises a person, and getting it wrong forces rework in every later integration. Commerce comes first only when the LMS sells courses, because there access depends on payment events from day one.
For each row, write down who owns the integration after launch. An integration that nobody owns is the one that silently stops in month four.
Integration patterns: how data actually moves
Every integration, whatever the vendor, is built from a small set of patterns. Choosing the right one per flow matters more than the choice of tool.
| Pattern | Direction | Freshness | Good for | Watch out for |
|---|---|---|---|---|
| Federated login (SAML, OIDC) | IdP to LMS, at login | Real time, but only when the user signs in | Authentication, profile refresh, group claims | Nothing happens for users who never log in |
| Push provisioning (SCIM) | IdP to LMS | Minutes | Creating, updating and deactivating accounts | The LMS must expose a SCIM endpoint, or you need a bridge |
| Webhooks and events | Either way | Seconds | Purchases, enrolments, completions | Retries, duplicates, out-of-order delivery, endpoint security |
| Scheduled API sync | Either way | Minutes to hours | Reconciliation, bulk updates, systems without events | API rate limits, long runs on large sites |
| File or database feed | Usually into the LMS | Hours | HR exports, legacy systems, student information systems | Silent failure when the file stops arriving |
| Launch protocols (LTI) | LMS to tool and back | Real time, per launch | External tools, grade return, roster sharing | Key and deployment management per tool |
Decide the system of record for every field
Before any code, agree which system owns each piece of data: the HRIS owns job, department and manager, the IdP owns login and email, the commerce platform owns entitlements, and the LMS owns progress, grades and certificates. When two systems can both edit a field, decide which one wins and write it down. Most sync bugs we are asked to fix are really ownership disputes that nobody settled.
Key on stable identifiers
Match people on an immutable ID such as the employee number or the IdP's object ID, never on email address or name, both of which change. Store the external ID on the LMS user record and, where the other system allows it, store the LMS user ID back there. Map products and entitlements to course IDs or SKUs, never to course titles.
Events for speed, reconciliation for truth
Events and webhooks make changes visible within seconds, but deliveries can be lost when retries run out or an endpoint is down. Pair every event-driven flow with a scheduled job that compares both systems and fixes drift. We walk through this pattern, with queueing, idempotency and dead-letter handling, in our HRIS, CRM and payments integration guide.
Identity: SSO, provisioning and directory sync
Single sign-on answers one question: is this person who they claim to be? It removes separate LMS passwords and lets IT enforce multi-factor authentication in one place. It does not create accounts before a first login, remove access when someone leaves, or put people into the right courses. Those jobs belong to provisioning and role mapping, and they need to be planned separately.
Protocols
- SAML 2.0 is the long-standing standard for enterprise and university federation. The LMS acts as service provider and receives a signed XML assertion.
- OpenID Connect sits on top of OAuth 2.0 and returns a signed JSON Web Token. Key rotation through published keys makes it easier to operate, and it suits mobile apps and API access.
- LDAP and Active Directory binds are still common on premises, often combined with a scheduled sync of user attributes.
Our comparison of SAML and OpenID Connect for an LMS covers the trade-offs, logout behaviour and IdP notes in detail.
Just-in-time accounts versus SCIM
Just-in-time provisioning creates the LMS account at first login from the attributes in the SAML assertion or ID token. It is simple, but managers cannot assign training to someone who has never signed in, and leavers keep their LMS accounts until something else removes them.
SCIM 2.0 (RFC 7643 and 7644) solves both problems by letting the IdP push changes. Microsoft's documentation for building a SCIM endpoint for Entra ID is a useful reference for what an LMS must support: /Users and optionally /Groups endpoints, PATCH requests, soft deactivation by setting active to false rather than deleting, returning inactive users in queries, and bearer-token authentication. Entra ID runs its provisioning cycles roughly every 40 minutes after the initial cycle, so SCIM is near real time rather than instant.
What each platform offers
| Platform | SSO options | Provisioning options |
|---|---|---|
| Moodle 5.3 | Core authentication plugins for OAuth 2 and OpenID Connect issuers (Google and Microsoft templates included), LDAP, Shibboleth, external database and LTI. SAML 2.0 for other IdPs usually comes from the SAML2 Single sign on plugin in the Moodle plugins directory. | No SCIM endpoint in core. Use LDAP sync, the external database authentication and enrolment plugins, scheduled CSV uploads, or web services driven by an integration service. |
| WordPress LMS plugins (LearnDash, LifterLMS, Tutor LMS) | All three use WordPress user accounts, so SSO comes from a WordPress SAML or OIDC plugin rather than the LMS plugin itself. | WordPress core has no SCIM endpoint. Provisioning is a plugin, a custom endpoint or the LMS REST API, plus mapping to groups, memberships or courses. |
| Canvas | Authentication providers configured per account, including SAML and OpenID Connect. | SIS imports and the REST API are the usual routes for users and enrolments. |
| Open edX | Third-party authentication with SAML and OAuth2-based providers. | Usually first login plus enterprise enrolment APIs, or custom services using the REST APIs. |
Map groups to roles and cohorts, not to courses
Send a small number of IdP groups or claims to the LMS and map them to LMS structures: Moodle cohorts, LearnDash groups, LifterLMS memberships, Canvas sections. Let the LMS decide which courses a cohort gets. If the IdP has to know about individual courses, every new course becomes an IT ticket.
Treat a leaver as a suspension, not a deletion. Deleting the account deletes the completion history that compliance teams need when an auditor asks about a former employee.
HR and organisation data
An HRIS integration turns the employee lifecycle into learning actions: create the account on hire, assign onboarding by role and location, change assignments when someone moves job, and suspend access when they leave. Completions and certificate expiry dates often flow back for talent and compliance reporting.
The fields that matter
- Employee ID (the matching key), legal and preferred name, work email
- Employment status and the effective dates of hire and termination
- Department, cost centre, location and legal entity
- Job title or job code, which usually drives role-based assignments
- Manager ID, so the LMS can give managers visibility of their team
Edge cases to design for
- Rehires: the same employee ID should reactivate the original account so earlier certifications remain visible.
- Transfers: decide whether assignments from the old role are withdrawn or left in place, and keep completed records either way.
- Future-dated changes: HR often enters a hire or transfer weeks ahead. Agree whether the LMS acts on the entry date or the effective date.
- Name and email changes: harmless when you key on employee ID, painful when you key on email.
- Contractors and partners: they are often missing from the HRIS, so you need a second source or a manual process.
How the main platforms receive HR data
In Moodle 5.3 the core building blocks are Upload users (tool_uploaduser) for CSV files, the external database authentication and enrolment plugins (auth_db, enrol_database) for a staging table the HR feed writes to, cohorts with Cohort sync enrolment (enrol_cohort) for department- or role-based course access, and Cohort roles (tool_cohortroles) to give a person a role over every member of a cohort, which is the usual starting point for manager visibility. For API-driven feeds, web service functions such as core_user_create_users, core_user_update_users and core_cohort_add_cohort_members do the same work. Our Moodle guide covers the surrounding administration.
On WordPress LMS plugins, HR data typically lands on the WordPress user, with organisation structure expressed through LearnDash groups and group leaders, LifterLMS memberships, or a custom table when the hierarchy is deep. Vendor-specific notes for Workday, BambooHR and SAP SuccessFactors, and a joiner, mover and leaver reference flow, are in our HRIS, CRM and payments guide.
CRM, customer education and automation
CRM integration matters most when you train people who are not employees: customers, partners, resellers and members. Typical flows pull entitlements into the LMS (which courses an account has bought or earned) and push learning signals onto the contact or account so sales and customer success can act on them.
Send summaries, not every event
Writing every lesson view into a CRM burns API limits and buries the data people care about. A handful of properties answers most questions: courses completed, certification status and expiry, last learning activity date, and onboarding course completed yes or no. Push those on change, and batch them where the CRM API allows.
Where the outbound events come from
Every CRM or automation flow starts with an LMS event. What you can subscribe to differs a lot between platforms:
- Moodle has no outbound webhooks in core. A local plugin registers observers in
db/events.phpfor events such as\core\event\course_completedor\core\event\user_enrolment_createdand queues the call to the external system, ideally in an ad hoc task so the learner's request is not slowed down. - LearnDash 4.18.0.1 has no general outbound webhook feature in core. Integrations hook PHP actions such as
learndash_course_completed,learndash_update_course_accessandld_added_group_access, or use a connector plugin. - LifterLMS 8.0.1 ships webhooks in its bundled REST library, with topics such as
enrollment.created,progress.updated,order.createdandstudent.updated, each signed with an HMAC. - Tutor LMS 4.1.3 exposes PHP actions such as
tutor_after_enrolledandtutor_course_complete_afterthat a small plugin can forward. - Canvas offers Live Events, delivered to an AWS SQS queue or to an HTTPS endpoint as JWT-signed requests, in either Canvas or Caliper format.
Verifying a LifterLMS webhook
LifterLMS sends an X-LLMS-Webhook-Signature header in the form t=timestamp,v1=hash, where the hash is an HMAC (SHA-256 by default) of the timestamp, a full stop and the raw JSON body, keyed with the webhook secret. A receiver can check it like this (not run on a live site; test on staging first):
function myprefix_verify_llms_webhook( $raw_body, $header, $secret ) {
if ( ! preg_match( '/^t=(\d+),v1=([a-f0-9]+)$/', $header, $m ) ) {
return false;
}
$expected = hash_hmac( 'sha256', $m[1] . '.' . $raw_body, $secret );
return hash_equals( $expected, $m[2] );
}
Compute the HMAC over the raw request body, before any JSON decoding. The timestamp is generated with WordPress current_time( 'timestamp' ), which is in the site's timezone rather than UTC, so allow for the site's offset if you also reject old deliveries. For deeper LifterLMS integration work, see LifterLMS Expert.
When an iPaaS is the right answer
Integration platforms such as Zapier, Make, n8n, Workato or MuleSoft give you connectors, mapping, retries and logs without custom code. They are a good fit for low-volume flows (a completion posts to a CRM, a purchase creates an enrolment) and for teams that already run one. They add a licence, another place where business logic lives, and usually per-task pricing that grows with learner numbers. For high-volume or business-critical flows, a small purpose-built service with proper queueing is often cheaper to run and easier to reason about.
Payments and course commerce
When an LMS sells courses, the payment provider's webhook, not the browser returning from checkout, should grant access. Browsers close, networks drop and people double-click. The integration has to grant access once per successful payment, cope with retries and duplicate deliveries, and handle refunds, chargebacks and failed renewals according to a written policy.
What the platforms include
| Platform (version checked) | Built-in commerce | Common extensions |
|---|---|---|
| Moodle 5.3 | Enrolment on payment (enrol_fee) with the PayPal gateway (paygw_paypal) as the only gateway in core | Stripe and other gateways from the Moodle plugins directory, or an external storefront that enrols through web services |
| LearnDash 4.18.0.1 | Course and group prices with Stripe, PayPal (IPN) and Razorpay gateways | Official WooCommerce add-on, membership plugins |
| LifterLMS 8.0.1 | Orders, access plans, coupons and a manual gateway in core | Stripe, PayPal and WooCommerce as separate add-ons |
| Tutor LMS 4.1.3 | Native e-commerce (since 3.0) with cart, checkout, coupons, tax, and PayPal plus manual payment methods bundled | Stripe and other gateways as separate plugins installed through Tutor Pro; WooCommerce and Easy Digital Downloads monetization options |
Rules that prevent most commerce bugs
- Verify the webhook signature against the raw body before trusting anything in it.
- Acknowledge quickly with a 2xx response, then do the enrolment work from a queue.
- Record processed event IDs so a duplicate delivery does nothing.
- Write the refund policy down: full refund, partial refund of a bundle, chargeback and failed subscription renewal should each map to a clear access outcome.
- For B2B seat sales, sell to the organisation (a LearnDash group, a cohort, a membership) and let a manager assign seats, rather than creating one order per learner.
- Remember that webhook URLs are built from the site URL. When you move domains or clone a site to staging, check where payment providers are sending events.
Tax, invoicing and revenue recognition usually belong in the finance or ERP system. Pass it the order and customer references, and avoid rebuilding accounting inside the LMS.
Learning tools, content and live classes
LTI 1.3 and LTI Advantage
Learning Tools Interoperability (LTI) from 1EdTech lets an LMS launch an external tool with the user's identity, role and course context, without a separate login. LTI 1.3 uses OAuth 2.0 and signed JWTs, and LTI Advantage adds three services: Deep Linking (choosing content from the tool), Assignment and Grade Services (returning scores) and Names and Role Provisioning Services (sharing the roster).
Moodle works on both sides. As a consumer, the External tool activity (mod_lti) launches third-party tools. As a provider, Publish as LTI tool (enrol_lti) exposes Moodle courses and activities to other platforms using LTI Advantage, with scheduled tasks that sync grades and users back. Canvas and Open edX support LTI 1.3 as well, so LTI is usually the cleanest way to share tools across platforms. Plan who manages keys and deployments per tool, because each registration is a small integration in its own right.
Packaged content and tracking
SCORM, xAPI and cmi5 decide how packaged content reports progress, and they drive whether you need a learning record store. Our eLearning standards guide explains SCORM, xAPI, cmi5 and LTI side by side. H5P is the other common format: Moodle 5.3 ships the H5P activity (mod_h5pactivity) in core, while WordPress sites use an H5P plugin.
Live classes
- Moodle ships the BigBlueButton activity (
mod_bigbluebuttonbn) in core. You still need a BigBlueButton server or a hosting provider behind it. Zoom and Microsoft Teams come from plugins in the Moodle plugins directory. - Tutor LMS Pro includes Zoom and Google Meet add-ons that create meetings as live lessons. Zoom API credentials are stored per instructor, so plan what happens to scheduled meetings when an instructor leaves.
- LearnDash and LifterLMS rely on third-party plugins or embedded meeting links for live sessions.
Whichever tool you use, decide early whether attendance needs to count towards completion. If it does, you need the meeting platform's attendance data back in the LMS, which is a real integration rather than a link on a page.
Communication
Moodle 5.3 includes a communication subsystem with a Matrix provider and a custom link provider, which can create a chat room per course. On other platforms, reminders and nudges in Slack, Microsoft Teams, email or WhatsApp are usually driven by the same events used for CRM flows.
LMS APIs and events by platform
The API is where most custom integrations live. Platform capabilities differ more than marketing pages suggest, so check the version you run.
| Platform | API | Authentication | Outbound events |
|---|---|---|---|
| Moodle 5.3 | Web services with REST and SOAP protocols, exposing core and plugin functions | Token per user and per external service | None in core; event observers in a plugin |
| Canvas | REST API, LTI 1.3, Canvas Data 2 (Data Access Platform) for bulk data | OAuth 2.0 access tokens | Live Events to SQS or HTTPS |
| Open edX | REST APIs across the LMS and its services | JWT access tokens issued by the LMS through its OAuth 2.0 implementation | Varies by deployment |
| LearnDash 4.18.0.1 | REST API v2 in the ldlms/v2 namespace, plus the WordPress REST API | WordPress REST authentication, such as application passwords | None in core; PHP action hooks |
| LifterLMS 8.0.1 | REST API in the llms/v1 namespace (bundled library 1.0.2) | API keys with read, write or read_write permission, over HTTPS only | Signed webhooks |
| Tutor LMS 4.1.3 | REST API in the tutor/v1 namespace: read routes in the free plugin, write routes in Pro | API key and secret sent as HTTP Basic, with Read, Write, Delete, Read/Write or All permissions | None in core; PHP action hooks |
Moodle web services
Enable web services under Advanced features, enable the REST protocol, then create a custom external service with only the functions the integration needs, tick Authorised users only, and issue a token for a dedicated integration account from Manage tokens, using the IP restriction and Valid until fields where you can. Useful functions include core_user_get_users_by_field, core_user_create_users, enrol_manual_enrol_users, enrol_manual_unenrol_users, core_course_get_courses_by_field and core_completion_get_course_completion_status. A completion check looks like this (not run on a live site; test on staging first):
curl -s "https://lms.example.com/webservice/rest/server.php" \
-d wstoken="$MOODLE_TOKEN" \
-d wsfunction=core_completion_get_course_completion_status \
-d moodlewsrestformat=json \
-d courseid=12 \
-d userid=345
Since Moodle 4.5 there is also a routing system that lets plugins define REST routes under /api/rest/v2. For integrations with today's core functions, the classic web services remain the main route.
WordPress LMS plugins
LearnDash 4.18.0.1 includes REST API v2 controllers for courses, lessons, topics, quizzes, groups, users, course progress and quiz statistics. According to LearnDash's 5.0 release material, 5.0 took v2 out of beta, added challenge exam endpoints and changed progress status values to use underscores, so integration code written against 4.x should be retested before an upgrade. LifterLMS exposes courses, sections, lessons, memberships, access plans, students, enrolments, progress and instructors through llms/v1. Tutor LMS Pro adds write endpoints for courses, lessons, quizzes, enrolments and students on top of the free read routes. Our WordPress LMS development guide goes deeper into the data models behind these APIs, and Tutor LMS Expert covers Tutor-specific build work.
Design rules for API integrations
- Use a dedicated integration account per connected system, with only the permissions that flow needs.
- Page through large result sets and throttle bulk jobs, especially on shared hosting or SaaS platforms with rate limits.
- Handle partial failure: a bulk enrolment call that fails for one user should not silently skip the rest.
- Pin the platform version in your test environment and rerun integration tests before every LMS upgrade.
Reporting, security and operations
Getting data out for reporting
Built-in LMS reports rarely satisfy HR, compliance and executive reporting for long. The usual next step is a scheduled export of users, enrolments, completions and grades into a warehouse or BI tool, joined there with HR and CRM data. Canvas customers can use Canvas Data 2, which offers snapshot and incremental queries over Canvas tables. Moodle and WordPress LMS sites usually export through the API or read-only database replicas, with the transformation logic kept outside the LMS. If you use xAPI, a learning record store becomes a reporting source in its own right.
Security
- Store API tokens, client secrets and webhook secrets in a secrets manager or environment configuration, never in code or shared documents.
- Give every token the narrowest scope the platform allows, and rotate it on a schedule and whenever someone with access leaves.
- Verify every inbound webhook signature, and restrict endpoints by IP where the sender publishes its ranges.
- Log what each integration changed, with the external ID and event ID, so you can answer "why was this person unenrolled?" months later.
- Send only the personal data each flow needs, and record each flow in your data protection documentation.
Our LMS integration service includes a review of tokens, scopes and webhook handling for existing integrations.
Testing and monitoring
- Test against sandboxes: most IdPs, CRMs and payment providers offer test tenants or test modes. Never point a staging LMS at live payment or HR webhooks.
- Keep a fixture set of awkward users: rehires, name changes, people in two departments, contractors.
- Monitor outcomes, not just errors. Alert when no HR file arrived, when zero enrolments were created on a weekday, or when the reconciliation job finds more drift than usual.
- Run a dead-letter queue for events that fail after retries, and give a named person the job of reviewing it.
A planning checklist
- List the integration families you need and the direction of each flow.
- Agree the system of record for every field and the matching key for people and products.
- Confirm what your exact LMS version supports: SSO plugins, APIs, events, webhooks.
- Choose the pattern per flow: login, SCIM, webhook, scheduled sync, file feed or LTI.
- Write the policies: leavers, rehires, refunds, failed renewals, deleted courses.
- Build with queueing, idempotency and reconciliation from the start.
- Test with sandboxes and awkward fixtures, then monitor outcomes after launch.
- Name an owner for every integration.
How we can help
We design, build and maintain LMS integrations for Moodle, WordPress LMS plugins, Open edX and custom platforms: SSO and provisioning, HRIS and CRM sync, payment flows, LTI tools and reporting exports. If you are planning a new integration or need an existing one audited and made reliable, our LMS integration team can scope it with you, starting from the systems you already run.
Frequently asked questions
What is LMS integration?
LMS integration is connecting a learning platform to other business systems, such as an identity provider, HRIS, CRM, payment provider, content tools and reporting, so that accounts, access and learning records move between them automatically instead of through manual exports.
What should an LMS integrate with first?
Usually the identity provider, for single sign-on and account provisioning, because every other integration depends on recognising the same person. Next comes the HR or customer data that drives enrolment, then sending completions to the systems that report on them. If the LMS sells courses, the payment integration is needed from day one.
What is the difference between SSO and SCIM?
SSO (SAML 2.0 or OpenID Connect) handles sign-in: it proves who the user is when they log in. SCIM is a provisioning standard that lets the identity provider create, update and deactivate accounts in the LMS ahead of time, including for people who have never logged in.
Does Moodle have a REST API?
Yes. Moodle web services can be called over a REST protocol at webservice/rest/server.php with a token, using functions such as core_user_create_users and enrol_manual_enrol_users. An administrator enables web services, creates an external service with the needed functions and issues a token for an integration account.
Is LTI the same as an API integration?
No. LTI is a 1EdTech standard for launching an external tool from the LMS with the user's identity and course context, and with LTI Advantage, returning grades and sharing rosters. An API integration moves data between systems in the background, independent of a user launching anything.
Free 30-minute consultation
Not sure where to start? Talk to an LMS engineer.
Tell us what platform you run and what you need. You’ll get honest, practical advice - even if the answer is that you don’t need us.
Sources & references
- Tutorial: Develop and plan provisioning for a SCIM endpoint in Microsoft Entra ID - Microsoft
- OAuth 2 services - Moodle
- Publish as LTI tool - Moodle
- Payment gateways - Moodle
- Live Events data service setup - Instructure
- OEP-42: Authentication - Open edX