Moodle SSO and identity integration

A decision and build guide for connecting self-hosted Moodle to your identity provider, covering protocol choice, provisioning, deprovisioning, attribute mapping and role or cohort sync.

On this page

Moodle SSO integration: what the identity work involves

A self-hosted Moodle that signs in staff and students through your identity provider needs one protocol chosen early and a set of identity rules built around it. The login itself is the smallest part. Core Moodle ships authentication plugins for OAuth 2, LDAP, Shibboleth, external database, LTI and web services, so if your provider speaks one of those, you may not need extra code. SAML 2.0 is different: it is commonly delivered through the SAML2 Single sign on plugin (auth_saml2), maintained by Catalyst IT, which you will need to review, test and keep current against your Moodle version. Confirm the plugin's listed Moodle compatibility against the release you plan to run before you commit to it.

The harder work starts after the first successful sign-in. Someone must decide how accounts are created when a person first logs in, which attributes map to Moodle profile fields such as username, email, firstname and lastname, and how a stable identifier is chosen so that a renamed or re-enrolled person does not get a duplicate account. Role and cohort assignment also need rules: which identity provider groups or claims grant teacher, manager or student roles, and who approves changes. Deprovisioning is where most gaps appear. A user who leaves the organization may keep a working account, enrolments and grade history unless suspension is tied to the source system. Ask your team which system is authoritative for each attribute and who owns the sync rules.

Before go-live, test the full lifecycle with real identity provider test accounts: first login, attribute change, group removal, suspension and a password or MFA reset. Document the fallback path for administrators, since a broken SSO configuration can lock out everyone, and keep at least one local administrator account that is protected separately. Plan for the sync approach too (login-time only or scheduled), because the answer changes how quickly a removed user loses access. Ask any implementation partner to write these decisions into the scope, with test evidence, before the quote is accepted.

Which Moodle authentication components and settings are involved

Moodle SSO is assembled from a small set of authentication plugins, field mappings and sync tools, each of which has to agree with the identity provider. The cards below cover the parts an engineer configures and the points where a mismatch usually shows up. Confirm plugin names, settings and screens against the Moodle version you install, because they change between releases.

Core authentication plugin

Moodle core ships authentication plugins for OAuth 2, LDAP, Shibboleth, external database and others, and each site enables only the ones it needs. Choose the plugin that matches what your identity provider speaks, then confirm in the installed version's Site administration that it is enabled and listed in the authentication order. Only one primary method should own each account, or users can be matched to the wrong record.

Core auth plugins

SAML 2.0 through auth_saml2

SAML 2.0 single sign-on is not in core for most sites, and the SAML2 Single sign on plugin (auth_saml2) by Catalyst IT is the commonly used option. The plugin's supported Moodle range is listed on its plugins directory page, so check that range against your target release before you install it. Confirm the IdP metadata exchange, signing certificate handling and logout behavior during testing.

Listed Moodle range
2.7 to 5.1
auth_saml2 plugin

Field mapping and first-login creation

The field mapping decides which identity claim fills each Moodle profile field, such as username, email and first name. Decide whether accounts are created on first login or only matched to existing users, and test a user who already has a manual account. Use a stable, unique identifier as the username source so a changed email address does not create a duplicate account.

LDAP sync settings

Where users live in a directory, the LDAP authentication settings define the server, bind account, user search context, and the attributes used to match and update records. Sync behavior, including how removed directory entries are handled, must be confirmed against the Moodle version in use. Use a read-only bind account with the narrowest search base that still finds all in-scope users.

Cohort and role sync tooling

Cohorts and role assignments are not created by SSO alone, so you need a defined method to place users into cohorts or courses from directory groups. Options include an enrolment or sync plugin, a scheduled import, or a custom script, and each has different failure modes. List which group names map to which cohort or role, and confirm how Moodle removes a user from a cohort when the source group changes.

Identity provider client, claims and groups

On the IdP side, you register Moodle as a client or service provider, set the redirect or assertion consumer URL, and choose which claims and groups are released to it. Confirm the claim names and group format the IdP sends, since Moodle matches on exactly what arrives. Test with an account from each group to catch missing or renamed claims before users are affected.

Choosing between OAuth 2, LDAP, Shibboleth and SAML2

This table compares the four Moodle authentication options by the identity setup each one fits and the operational work it adds over time. Read each row against your own directory and federation situation, then use the account creation row to decide how users get into Moodle before you pick a protocol.

OptionWhen it fitsOperational cost to plan forWatch for at Moodle upgrades
LDAPAn existing on-premises directory such as Active Directory that holds the accounts and passwords you want to reuseDirectory service account and bind credentials, network path from the Moodle web nodes, handling of disabled or moved accounts, and a sync or login policy that someone ownsConfirm the LDAP auth plugin settings and field mappings still work after each major release and test a real login
OAuth 2A cloud identity provider or social login that issues OpenID-style tokens and you want Moodle to trust that providerClient ID and secret management, redirect URI maintenance, secret rotation, and mapping of provider claims to Moodle profile fieldsConfirm the OAuth 2 service definitions and claim mappings still match the provider's current configuration after each upgrade
ShibbolethA federated university or public sector setup where a federation operator and identity provider already issue attributes to a Shibboleth service providerService provider configuration and metadata exchange with the federation, attribute release agreements, and certificate renewal on a schedule set by the federationTest the Shibboleth session and attribute handling after each upgrade, since the web server and service provider layers sit outside Moodle
SAML2 (auth_saml2 plugin)A corporate or public sector identity provider that speaks SAML 2.0 and needs a Moodle-side plugin for the login flowThird-party plugin maintenance, signing certificate rotation, metadata refresh, and checking that the plugin version supports your Moodle releaseCheck the plugin's listed Moodle compatibility before every upgrade, because the plugin is maintained separately from core
Account creation: login-time creationUsers arrive from the identity provider and only need accounts once they sign in, with no roster to load in advanceSimpler setup, but accounts exist only after first login, so cohorts, enrolments and grades cannot be prepared before the course opensConfirm profile fields are filled from the identity provider on each login, or users may appear without names or email addresses
Account creation: scheduled syncA roster is known in advance and courses must be ready before students sign in, or deprovisioning must be enforced without waiting for a loginScheduled job or connector to maintain, failure alerts to watch, and a rule for what happens to accounts missing from the sourceConfirm the sync job still runs after upgrades and that suspension rules still apply to accounts removed from the source
Account creation: bothMost organizations with a directory or HR source and a separate SSO login, where login creates accounts and a sync keeps roles, cohorts and suspensions correctTwo paths to test and document, and a clear owner for which source wins when attributes conflictRe-test the combined flow after each upgrade, including a suspended account trying to sign in

How a Moodle login flows through the identity provider

The flow starts when a learner opens Moodle in the browser and Moodle hands the request to the chosen authentication plugin, such as OAuth 2, LDAP, Shibboleth or the SAML2 plugin. The identity provider checks credentials against the directory, then returns a signed assertion or attribute set. Moodle maps those attributes to profile fields, creates or updates the account, and assigns cohorts or roles. Check the mapping and the trust boundary at each hand-off.

Browser, Moodle, identity provider and directory, with attribute mapping and role assignment in Moodle.

Build sequence for Moodle SSO and provisioning

This sequence takes a Moodle site from version checks to a cut-over login flow in which identity provider accounts create, update, suspend and map to Moodle users, roles and cohorts in a predictable way. Each step ends with a check so the next step starts from a known state.

  1. Confirm Moodle and PHP versions

    Confirm the Moodle release you run or plan to run, then check the PHP and database versions against that release's requirements before touching authentication. Moodle 5.1 requires 64-bit PHP 8.2 or later (8.3 and 8.4 are supported), and Moodle 5.3 requires 64-bit PHP 8.3 or later, so the target release sets the PHP floor. Confirm that the web server document root points to the /public directory on 5.1 and later. The team that owns the server and the Moodle administrator should both sign off. This step is done when the target version, PHP version, database version and document root are written down and match the release notes for that version.

  2. Choose and install the authentication method

    Pick the protocol that matches your identity provider: OAuth 2, LDAP, Shibboleth or SAML 2.0 through the SAML2 Single sign on plugin (auth_saml2), which is maintained by Catalyst IT. Core ships OAuth 2, LDAP and Shibboleth authentication, so check whether the core method covers your case before adding a plugin. If you add auth_saml2, review its listed Moodle compatibility and install it on a staging copy first, then review the plugin's code and update history with your security team. This step is done when the chosen method is enabled on staging with no other authentication methods changed on production.

  3. Register Moodle with the identity provider

    Register the Moodle site as a client, application or service provider in your identity provider. Record the exact entity ID or client ID, the redirect or assertion consumer URL built from your staging hostname, and the scopes or attributes the provider will release. Keep the staging and production registrations separate so that a staging redirect never appears in the production trust configuration. Confirm with the identity team who owns signing certificates and secrets, and where those secrets will be stored. This step is done when the provider shows a registered application for staging with the expected redirect URL and the Moodle side holds matching settings.

  4. Map required attributes to Moodle fields

    Map the identity provider attributes to Moodle user fields: the unique username, email address, first name, last name and the stable external identifier. Choose the identifier carefully, because it should not change when a person's email or display name changes. Confirm which attribute is unique and immutable in your directory, and decide whether to update existing accounts on each login. Document the mapping as a table so administrators can review it. This step is done when a test directory account produces a Moodle profile whose username, email and names match the source attributes and the identifier is stable across two logins.

  5. Test login with staging accounts

    Use a small set of staging accounts that cover the cases you expect: a standard learner, an instructor, an account with a changed email, and an account that should be refused. Test first-time login, repeat login, logout, and login after the session expires. Check the Moodle logs for authentication events and confirm that failed logins for disallowed accounts do not create Moodle users. Record the test results and the configuration version they ran against. This step is done when every test account behaves as the mapping table predicts and the test record is saved for the cut-over review.

  6. Configure account creation and suspension

    Decide how Moodle creates accounts at first login and how it handles accounts that leave the identity provider. Set the rules for which identity provider groups may create accounts, and decide whether removed or disabled upstream accounts are suspended in Moodle rather than deleted, so that course history and grades remain intact. Confirm the process with the HR or identity owner who controls the source of truth. Run a test where a staging account is disabled upstream and confirm that Moodle suspends it on the next sync or login, depending on the method you chose. This step is done when the suspension test passes and the owners have approved the rule in writing.

  7. Set up role and cohort sync

    Map identity provider groups or attributes to Moodle system roles, course roles and cohorts. Keep the mapping small and documented, and give each group a single owner. Test that a user moved between groups receives the correct role or cohort on the next sync and loses the old one, and that administrator roles are never assigned from an attribute value that a non-administrator can change. Review the mapping with the Moodle administrator and the security team. This step is done when a staging user who changes group gains and loses the expected roles and cohorts, and the mapping has been reviewed by both teams.

  8. Cut over and monitor the first logins

    Switch production to the approved configuration during a window agreed with the business owners, using the same steps that passed on staging. Keep the previous authentication settings available so you can revert, and confirm the production redirect URLs and certificates before enabling the method for all users. Watch authentication logs and support tickets through the first working days after go-live. This step is done when a sample of real production users log in successfully, suspensions and role changes match the documented rules, and the rollback path has been tested or explicitly accepted.

How provisioning and deprovisioning keep accounts current

The central decision is whether Moodle creates accounts when users first sign in or whether it syncs them from a directory before they ever log in. Creating accounts at first login is the simpler path: the identity provider or directory authenticates the user, and Moodle builds the profile from the attributes it receives. The weakness is that Moodle only learns about a user when that person signs in, so enrolments, cohorts and roles cannot be prepared in advance, and a departed employee who never returns leaves an active account behind. Directory sync, typically through a scheduled job against LDAP or an HR-fed source, lets Moodle hold the user list ahead of time. Confirm which sync and user-creation options your chosen auth plugin exposes in your Moodle version, because the settings differ between the LDAP, OAuth 2, Shibboleth and SAML2 plugins.

The most important control for leavers is suspension, not just loss of login. When a user disappears from the directory or loses access at the identity provider, Moodle should suspend the account so it stops accepting sessions and is excluded from active enrolments. Whether a missing directory entry triggers suspension or deletion depends on the plugin and its removal setting, so test it with a disposable account before go-live. Keep in mind that a user removed at the identity provider still has an active Moodle session until it expires unless you also end sessions through your administration process. Confirm the exact behavior, including how removed users are handled in cohorts and enrolments, on your Moodle version rather than assuming it from the plugin name.

Duplicate accounts usually appear when the identifier Moodle uses for matching changes, for example when a username, email address or employee number is reissued. Decide early which attribute is the stable key, commonly an immutable employee or student identifier rather than an email address, and map it deliberately in the authentication settings. Before cutover, run a reconciliation that compares directory identifiers with existing Moodle username and idnumber values. For enrolments and grades, decide in advance whether a removed user keeps course history for audit, whether their grades are retained or hidden, and who approves deletion, since deleting an account can remove records that teachers and auditors need. Plan these rules with your compliance owner before the first sync runs.

What drives identity integration effort and how to keep it down

This table lists the main factors that change how much work an identity integration takes, how each one shows up in a Moodle project, and what to do to keep it contained. Read it before scoping, because most overruns come from attribute quality and mapping decisions made late rather than from the protocol itself.

DriverWhy it changes effortHow to keep it down
User population and directory sizeLarger populations raise the cost of first sync, reconciliation runs and testing with realistic account volumes, and make bad matching rules more expensive to fix.Agree which populations need accounts (staff, learners, guests) and exclude the rest at the directory query. Test first sync against a copy of production volumes.
Number of identity sourcesEach source (LDAP directory, SAML IdP, OAuth 2 provider, external database) adds its own login path, attribute set and failure modes to test.Use one authoritative source for identity and treat others as secondary. Confirm with the identity team which source owns each account.
Attribute qualityMissing, duplicated or inconsistently formatted fields such as email, username or student number cause matching errors and manual account fixes.Agree an attribute contract with the identity team early, covering names, formats, uniqueness and update behaviour. Ask for a sample export before design starts.
Group-to-cohort mapping complexityEvery directory group that becomes a Moodle cohort or role adds a rule to build, test and maintain, and rules tend to multiply each term.Limit role mapping to a short list of named roles. Map groups to cohorts only where teachers use them for enrolment or reporting.
Number of environmentsTest, staging and production each need their own IdP registration or LDAP binding, redirect URIs, certificates and test accounts, so configuration work multiplies.Script configuration per environment and keep differences limited to hostnames, keys and bind credentials. Confirm with the identity team how test registrations are issued.
Custom claim logicRules that derive roles or cohorts from claims, or transform values before mapping, are code or plugin work that must be reviewed and kept through upgrades.Push transformations back to the identity provider where it is practical. Keep any remaining logic in one documented place and cover it with test cases.
Deprovisioning and offboarding rulesDeciding how suspended or removed accounts are handled, and how long access is retained, needs agreement from HR, legal and the identity team, and it is often left open.Write the lifecycle rules down before build. Confirm with the client's HR and security owners who decides when an account is suspended and how that is evidenced.
Compliance evidence needsAssessors may ask for a documented access model, change records for mappings, and proof that deprovisioning works, which adds documentation and test runs.Ask early which controls the assessment covers. Keep mapping configuration in version control and retain test results for each change.

How the setup changes for hosted, clustered and isolated Moodle

On one web node, the identity provider sees one callback address, and every session and cache lives on the same server. This is the simplest case to configure and test, but the public address still has to be exact because OAuth 2 redirect URIs and SAML assertion consumer URLs are matched character by character.

  • Base address: Set $CFG->wwwroot to the public HTTPS address so that redirect URIs and SAML endpoints match what the provider has registered.
  • Session handling: Confirm which session handler the site uses and check that it suits your expected number of concurrent users.
  • Credentials: Store client secrets and signing certificates in protected server configuration, with a recorded renewal date for each.
  • Login testing: Test sign-in, sign-out and forced session expiry from a clean browser profile, not from a session that is already logged in.

Before go-live, check that the redirect addresses registered with the identity provider match the production URL exactly, including scheme, host and port.

How to secure Moodle SSO credentials and trust settings

Single sign-on turns your identity provider and directory into the gatekeepers for every Moodle account. The cards below cover the credentials, certificates, network paths and claims that carry that trust, and the logs that show whether it is being used correctly. Broader site controls are covered in the Moodle security hardening topic.

Client secrets and signing certificates

OAuth 2 client secrets and SAML signing certificates are the keys that prove Moodle is who it says it is. Store client secrets in a secrets manager or protected configuration outside the web root, not in plain text in the database or in version control. Record who holds each secret, when it was issued and when it expires, and plan a rotation that is tested on staging first. For SAML, confirm which certificate the identity provider uses to sign assertions and who owns its renewal date.

LDAP bind account least privilege

The bind account Moodle uses to search the directory should be a dedicated service account with read access only to the attributes and organizational units Moodle needs. It should not be a domain administrator or a shared personal account. Confirm which password policy applies to it, whether it can change its own password, and that its activity is visible in directory logs. Review its group memberships after every directory restructure.

TLS verification for identity endpoints

Moodle must validate the certificates presented by the LDAP server, the OAuth 2 token and metadata endpoints, and the SAML metadata source. Disabling certificate checks to get a connection working is a common shortcut that exposes credentials in transit. Confirm that the Moodle host trusts the internal certificate authority, that certificate expiry is monitored, and that LDAP connections use encrypted transport.

Fallback administrator login with MFA

If SSO fails, administrators need a way back in that does not depend on the same identity provider. Keep a small number of named local administrator accounts, protected with multi-factor authentication, and restrict their login to a defined network path or administrative address range. Test the fallback path during each go-live and upgrade, and record who can use it and under what conditions.

Trusted claims for role assignment

Any attribute that decides a role, cohort or enrolment is a trust decision. Before mapping a claim or directory attribute to a Moodle role, confirm who can edit that attribute at the source, whether users can change it themselves, and whether the value is unique and stable. Limit site administrator and manager roles to explicit group membership that is reviewed on a schedule, rather than to free-text department or title fields.

Authentication event logging

Log sign-ins, failed attempts, account creation, attribute changes and role assignments from SSO, and keep those records outside the Moodle server where administrators cannot edit them. Check that the identity provider logs and Moodle logs can be matched by user and time. Confirm your retention period with your security and compliance teams, and test that an alert fires for repeated failures on administrator accounts.

How to test that Moodle SSO works and fails safely

Test Moodle SSO against a written matrix before any real user signs in, and treat each failure path as a requirement, not an edge case. Start with five cases: a new user's first login creates an account with the expected username, email, and profile fields; a changed attribute at the identity provider (for example, a department or job title) updates the Moodle profile on the next login or sync run; a user removed from the identity provider cannot sign in and is suspended in Moodle as your configuration intends; role and cohort assignments match the test matrix for each test persona; and, with the identity provider deliberately made unreachable, an administrator can still sign in through the manual authentication path. For the last case, confirm that a named break-glass administrator account exists, that its password and MFA are stored outside the SSO dependency, and that the login route is documented. The exact behavior of the SSO plugin you chose (OAuth 2, LDAP, Shibboleth, or auth_saml2) determines how each case is run, so confirm its field mapping and suspension behavior in your own test instance rather than assuming them.

Run the rollback check as a separate step with its own pass criteria. Disable the new authentication plugin or revert the plugin configuration on a copy of production, then confirm that existing local accounts still authenticate, that suspended accounts stay suspended, and that no users were created or altered unexpectedly during the test. Confirm also that the Moodle version and plugin versions match the change record, since an authentication plugin upgraded during the change may not roll back cleanly. Record who can perform the rollback and how long it takes in your environment. Do not state a duration in advance; measure it in a rehearsal.

Keep evidence that a reviewer could follow without asking you questions. For each test case, store the test persona, the identity provider configuration version, the Moodle authentication plugin settings export, the resulting user record and role assignments, and the log entries from the Moodle site logs showing the login event. Keep the test matrix with expected and actual results, the screenshots or outputs of the outage test, and the rollback rehearsal record with timings and sign-off. Store the change ticket reference alongside these, and retain them according to your own records policy. If you are preparing for a compliance assessment, ask your assessor which evidence format they accept before you run the tests.

What to monitor, back up and document after SSO goes live

This table lists the recurring items that keep Moodle sign-in and directory sync working after go-live, how often each one needs attention, and who should own it. Use it to assign owners before cutover, since most SSO outages come from expired credentials, unmonitored sync jobs or an upgrade that skipped identity plugin checks.

ItemWhat to check or keepRecurrenceOwner
Authentication failures and lockoutsReview failed logins, IdP error responses and locked accounts. Confirm alerts reach a person who can act on them.Daily or continuous, with weekly reviewMoodle administrator with identity team
Certificate and client secret expiryRecord expiry dates for SAML signing certificates, OAuth 2 client secrets and LDAP service account passwords. Set reminders well before expiry.Recurring, tied to each credential's lifetimeIdentity team, with Moodle administrator informed
Directory sync job resultsCheck that scheduled user, cohort and role syncs ran, and review counts of created, suspended and changed accounts for unexpected spikes.Each scheduled run, reviewed dailyMoodle administrator
Deprovisioning accuracySample leavers and confirm their Moodle accounts are suspended as expected, and that suspension rules still match the source directory.Monthly sample, and after any directory schema changeHR or identity team with Moodle administrator
Plugin compatibility at each upgradeConfirm the SAML2 or other auth plugin supports the target Moodle version before upgrading. Test sign-in on a staging copy after each major or minor release.Each Moodle release, six-monthly majors and bimonthly minorsMoodle administrator with developer or partner support
Web server document root after Moodle 5.1Confirm the web server points to the /public directory, since the main Moodle folder exposed by mistake can show listings or errors. Check this during every server change.Each upgrade and web server changeSystems administrator
Configuration backupExport and store auth plugin settings, attribute mappings, OAuth 2 issuer settings, cohort and role sync rules and IdP metadata, alongside the database backup.On every change, plus a scheduled exportMoodle administrator
Runbook for adding an identity sourceKeep a written procedure covering IdP onboarding, test accounts, attribute mapping, role rules, rollback and sign-off by security.Updated when a source is added or changedIdentity team, reviewed by security

Questions buyers ask about Moodle SSO integration

Does SAML 2.0 single sign-on in Moodle need a plugin?

Yes, in practice. Moodle core ships authentication plugins for OAuth 2, LDAP, Shibboleth and other methods, but SAML 2.0 is commonly provided by the SAML2 Single sign on plugin (auth_saml2), maintained by Catalyst IT. Confirm that the plugin version you choose supports your Moodle release before you commit, because compatibility is listed per version in the plugin directory. Your identity provider also has to issue the attributes Moodle needs, such as a stable username, email address and any role or cohort claims. Those attribute decisions shape the plugin configuration more than the protocol choice does, so settle them with the identity team first.

How long does Moodle SSO integration take, and what drives the duration?

No fixed duration applies to every site, so ask the implementation team for a timeline based on your environment. The main drivers are the number of identity sources (one IdP or several directories), whether SAML, OAuth 2, LDAP or Shibboleth is used, how many attributes must map into Moodle profile fields, whether roles or cohorts sync automatically, and how many test cycles your security and identity teams need to sign off. Test environments, certificate exchange and change approval windows also add elapsed time. A quote should list each of these items separately, with the test cases and sign-off steps written into the scope.

Can our own team set up Moodle SSO without outside help?

A team with Moodle administration experience and access to its identity provider can often do it, particularly for a single protocol and a small attribute set. The work involves identity provider configuration, certificate or client secret handling, plugin installation, field mapping, login testing and a rollback plan. Teams that have not handled SAML metadata, LDAP bind accounts or Shibboleth attribute release before tend to spend the most time on those edges. Ask whether an external partner would cover design review, configuration, testing and documentation, or only one of these, and whether knowledge transfer is part of the scope.

What does the identity and directory team need to provide?

The identity and directory teams own the source of truth, so they need to be involved from the start. They typically provide the identity provider or directory endpoints, a test tenant or test account, the attribute list with their formats, group or role claims, and the signing certificate or client registration details. They also confirm which account types may log in, how password policy and MFA apply to Moodle users, and who approves changes to the trust relationship. Agree on a named contact for each system, because most delays come from waiting for these inputs rather than from Moodle configuration itself.

How do Moodle upgrades affect authentication plugins?

Each Moodle release can change core APIs, and third-party authentication plugins must be compatible with the version you run. Moodle ships major releases every six months and minor point releases every two months, so a plugin that worked on one release may need an update or replacement before you upgrade. Check plugin compatibility against your target version, rerun login tests in staging, and confirm that stored configuration survives the upgrade. The Moodle upgrades and support topic covers the release cadence in more detail. Ask any partner to include auth plugin checks in each upgrade test cycle.

How is deprovisioning handled when someone leaves?

Deprovisioning depends on the method. With SSO, a user disabled in the identity provider cannot log in through the IdP, but the Moodle account remains until an administrator or sync process suspends it. With LDAP or external database sync, you can configure Moodle to suspend or delete accounts that no longer appear in the source, and to unenrol them from courses. Decide the policy before go-live: how quickly access ends, whether accounts are suspended or removed, how grades and submissions are retained, and who reviews exceptions. Test the policy with a sample of leavers in staging and document the audit trail your compliance team will ask for.

Which attributes and cohorts should sync into Moodle from the identity source?

Start with the attributes Moodle needs to create a unique account and place users in the right courses: username, email, first and last name, and an identifier that stays stable across renames. Add cohort or role data only where a rule depends on it, such as department-based cohorts or staff versus student roles. Map each attribute to a Moodle profile field and record the transformation, such as lowercasing usernames or handling multi-valued claims. Ask the implementation team to show the mapping table and a test account for each user type before approving the design.

How DeployOpen scopes and hands over Moodle identity integration

DeployOpen plans and implements Moodle identity integration inside your own infrastructure, so the sign-in path, provisioning rules and role mappings are set up to your identity provider and reviewed by your own security and compliance teams. Engagements are fixed-scope, with the protocol, attributes and sync rules agreed in writing before any configuration starts.

How we scope

  • Confirm the identity provider, protocol (OAuth 2, LDAP, Shibboleth or SAML 2.0) and the Moodle version in use or planned
  • Document which attributes map to Moodle profile fields, cohorts and roles, and who owns each mapping
  • Agree in writing how joiners, movers and leavers are provisioned and deprovisioned, and what happens to existing accounts

How we build

  • Configure the chosen authentication plugin, including the SAML2 Single sign on plugin (auth_saml2) where SAML 2.0 is required
  • Build role and cohort sync rules and test them against a staging Moodle with non-production identities
  • Test failed logins, expired sessions, changed attributes and removed users, and record the results for review

How we hand over

  • Deliver configuration records, attribute mapping tables, sync rules and a runbook your administrators can follow
  • Document the Moodle and identity provider settings that must be changed together during future upgrades
  • Walk your identity, security and Moodle administration staff through the design and the test evidence before go-live

How we support

  • Offer ongoing support, upgrades and continuous testing for identity integration as a retainer after go-live
  • Retest authentication settings when you move to a new Moodle major or minor release or change identity providers
  • Agree in the written scope which party handles certificate renewals, provider changes and incident response

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.