Skip to content
Contact support

Connect Moodle

For LMS administrators

This guide is for Moodle administrators connecting their institution to Alexandria.

There are two ways to connect. The plugin does everything in one click and is what we recommend. The manual LTI route exists for sites that cannot install plugins.

Plugin (recommended) Manual LTI
Effort Install plugin, fill two fields, click once Register tool, then adjust several settings
Course and material sync Configured automatically Not included, contact us to add it
Launch container Set to new window for you You must set it yourself
Requires Ability to install a local plugin, Moodle 4.1+ Nothing beyond admin rights

Unless your institution forbids third-party plugins, use the plugin. It sets up the LTI tool, the web service, the service account, and the launch behaviour in one step, and each of those is something that can be got wrong by hand.

Request the local_alexandria plugin package from us at [email protected], then either:

  • go to Site administration → Plugins → Install plugins and upload the ZIP, or
  • copy the folder to <moodle>/local/alexandria and run php admin/cli/upgrade.php.

The plugin requires Moodle 4.1 or later.

  1. Go to Site administration → Plugins → Local plugins → Alexandria connection.

  2. Fill in Your name and Your work email. Use your institutional address: its domain tells us which email domains belong to your school, and it is how we reach a real person if something needs attention later.

  3. Click Connect.

The connection page on a site that has already been connected, before the first connection the button reads Connect, afterwards Reconnect.

That single click does all of the following, so that you do not have to:

  • enables web services and the REST protocol
  • creates a dedicated external service exposing six read-only functions and nothing more: site info, user lookup by field, a user’s courses, course lookup by field, course contents, and enrolled users
  • creates a dedicated service account and role scoped to exactly those functions
  • registers Alexandria as an LTI 1.3 tool in the active state, with the launch container set to new window and the tool available in the activity chooser
  • reports the connection to Alexandria

The page then reports back. “Connected. Alexandria is active for your institution” means you are done. “Almost there” means everything on this site is set up and we are verifying the institution by hand, you will be emailed at the address you entered once it is approved.

Alexandria is now in the activity chooser. An educator adds it to a course the same way they add any other activity.

Registering the tool, by either route, makes Alexandria available to your whole site. Two settings on the tool’s own configuration page narrow that, and both matter more to a pilot than to a full rollout.

Find them at Site administration → Plugins → Activity modules → External tool → Manage preconfigured tools. Preconfigured tools are grouped under Active, Pending, and Rejected tabs. Open the pencil icon next to Alexandria on the Active tab.

Tool configuration usage controls who can reach Alexandria, and Restrict to category controls where.

This decides how visible the tool is to educators. It offers exactly three choices:

Setting What educators see
Do not show; use only when a matching tool URL is entered Nothing. The configuration applies only if someone pastes a matching URL themselves
Show as preconfigured tool when adding an external tool Alexandria in the tool list, but only after choosing the External tool activity
Show in activity chooser and as a preconfigured tool Alexandria alongside Assignment and Quiz in the activity chooser

The plugin sets the third. That is the setting you want unless you are deliberately keeping Alexandria out of sight during an evaluation.

Underneath, Restrict to category lists your course categories with a checkbox each. Moodle’s own help for the field says it restricts use of the tool to courses within the categories you select. This is the closest Moodle has to the org unit and sub-account scoping other systems offer, and it is how you run a pilot: tick the category holding the pilot courses and Alexandria stays out of every other course on the site.

If your Moodle runs on your institution’s own domain, for example moodle.your-university.nl: Alexandria verifies the institution automatically and the connection goes live immediately. This covers most self-hosted Moodle sites.

If it runs on a shared hosting domain that identifies the host rather than your institution, a person reviews the registration first. We confirm within one working day, and launches show a holding message until then.

The first educator to launch Alexandria from a course is taken to a setup page where they link the Moodle course to Alexandria and choose which materials the AI may use. This takes a few minutes and happens once per course.

A student who launches a course the educator has not set up yet sees a page explaining that the course is not ready and asking them to check back.

Moodle gives a copied or restored course a new context ID. Alexandria reads the course from the launch every time, rather than remembering it against the link, so a copy is treated as a new course: the educator is walked through setup again, and students see the “not ready yet” page until that is done.

Launches never break, and they never silently serve the previous term’s materials.

When a launch cannot complete, Alexandria does not fail silently: the user gets a page naming the problem and an error code to quote to you.

What a student sees when a launch fails. The error code identifies the cause, LTI-05 means the launch URL in the tool registration does not match the one Alexandria expects.

Moodle-specific problems are below. For issues common to every LMS, see Troubleshooting LTI launches.

The tool opens a blank frame or spins forever. The launch container is not set to New window. The plugin sets this for you, so this should only affect manual registrations.

Educators cannot find Alexandria when adding an activity. Tool configuration usage is not set to Show in activity chooser and as a preconfigured tool, or the tool’s card on Manage tools is not Active.

Alexandria is missing from some courses only. Restrict to category is ticked for a category those courses are not in. See Deciding where Alexandria appears.

Launches work but no course materials appear. The web service token is missing. Expected on manual registrations, email us to add sync.

  • Received per launch: issuer, a stable user identifier, email address, LTI role, and course context.
  • Received via the web service (plugin route): course content, materials, and enrolment lists, through six read-only functions.
  • Hosting: processed and stored in the EU on Google Cloud. Encrypted in transit (TLS 1.2 and above) and at rest (AES-256).

Full detail is in the Trust Center and the privacy policy.