Moodle custom reports with the report builder

Moodle's report builder lets administrators define custom reports from core data sources, filter them with conditions, schedule delivery and limit who can see them. This page covers how to plan and configure them and when a separate analytics stack is still needed.

On this page

Why teams build custom Moodle reports with the report builder

Compliance, operations and training managers build custom reports with the report builder when they need recurring evidence from Moodle that someone can run, schedule and share without exporting data by hand. The report builder is a core Moodle feature that lets administrators and authorized users define a report from a chosen report source, add columns and conditions, and decide who can view it. It is the right first tool when the question is about people, courses, completions, grades or activity that Moodle already records, and when the answer must be repeatable week after week. Before designing anything, confirm which report sources and conditions your Moodle version exposes, because these change between releases. Check your version against the Moodle releases page and the release notes for your version, and build a test report in a non-production copy first.

The report builder is documented in Moodle's own help and developer material, so the first decision is scope. List the recurring questions that matter, such as who completed mandatory training this quarter, which learners have not logged in for a set period, or which courses have overdue grading. For each question, check whether a single report source covers the data without joins your team cannot maintain. Then decide how the report is delivered: an on-screen view for a small group, a scheduled export for an oversight committee, or a file a downstream system picks up. Scheduled delivery and access control are configured in Moodle, but the recipients, retention of exported files and the roles allowed to edit reports are governance decisions that must be written down before go-live.

Teams still need a separate analytics stack when reports must join Moodle data with HR, finance or student information systems, when they need long-term history beyond what the live database holds, or when analysts require ad hoc modelling and visual exploration. Moodle reports read the operational database, so heavy reports on a busy site deserve a performance check, and the reporting team should agree which data is copied out and how. Reports also are not a substitute for an audit trail. Confirm with your compliance lead which evidence must come from logs, which can come from a report, and how long each must be kept. Whether a Moodle report or an external tool fits best is a question to settle against your requirements, not against the feature list.

Report builder options and when each fits

This table compares the main report builder choices: sources, columns, conditions, default filters, scheduled delivery and sharing. Read each row as a decision: the typical use case on the left and the exposure or maintenance trade-off on the right. Anything whose exact behavior depends on the Moodle version is marked for confirmation before you commit to a design.

OptionTypical use caseTrade-offConfirm in your version
Report sourceStart from a built-in source such as users, courses or completion, then add the joins you needWide sources expose more personal fields, so each added join widens who can see the resultWhich sources exist and which fields each one exposes
ColumnsShow only the fields an operations or compliance reader needs for the questionEvery extra column adds privacy exposure and makes exports harder to reviewWhich user fields are available and how they are displayed in exports
ConditionsLimit rows to a cohort, category, date range or completion stateConditions define what the report can reveal, so an overly broad condition leaks records silentlyHow conditions combine and whether they can reference profile fields
Default filtersGive viewers a sensible starting view, such as the current termUsers can usually change filters, so defaults are not a security boundaryWhether viewers can remove or override default filters
Scheduled deliverySend a fixed compliance or operations summary to a named mailbox on a timetableEmail leaves Moodle, so recipients and attachments need the same data review as the report itselfRecipient limits, attachment formats and delivery logging
Self-service viewLet teachers or managers check their own groups without asking an administratorAccess depends on roles and context, so a misassigned role exposes data across coursesWhich roles can view and edit reports at each context level
Sharing with roles or audiencesGive a stable set of people access without sharing each report by handRole-based sharing is only as tight as the role assignments behind itWhether audiences apply to report access in your version
Separate analytics stackJoins across systems, long history or heavy aggregation outside Moodle's databaseAdds a data copy, a sync process and another access model to governSync frequency, data retention and who owns the copied personal data

How to set up a custom report in Moodle

This sequence takes a reporting question from an agreed data definition to a scheduled, access-controlled report that staff can trust. Each step ends with a check against data you already know is correct, so the report is verified before anyone relies on it.

  1. Confirm the data question and the audience

    Before opening the report builder, write down the question the report answers, the data it needs, the population it covers (for example, learners enrolled in a named course during a date range), and who will read it. Agree this with the report owner, such as the training manager or compliance lead. The step is done when the owner signs off a one-paragraph definition that names the fields, the filters and the recipients. This definition becomes the reference for every later check.

  2. Choose the report source and create the report

    In Moodle's report builder, create a new custom report and select the report source that holds the fields you need, such as course, user or activity completion data. Check that the source covers the data in your definition, because some fields may live in a different source or may need a custom report source built by a developer. Name the report clearly and record the Moodle version it was built on. The step is done when the report exists with a source that matches the definition.

  3. Add columns and conditions

    Add only the columns the audience needs, then add conditions to limit rows to the agreed population, for example a course category, an enrolment status or a completion date range. Keep default filters visible only where a reader should change them. Save the report and open it with an administrator account. The step is done when the column list matches the definition and the conditions return rows that a person can explain.

  4. Test against known learners and courses

    Pick two or three courses and a few learners whose enrolment and completion state you can verify by hand, including one who should be excluded by a condition. Run the report and compare row counts and individual values with what you see on the course participants and completion pages. Check dates and time zones on a boundary case. Repeat the test after any change to conditions. The step is done when every test case matches the expected result, and any mismatch is explained or fixed before the report is shared.

  5. Set capabilities so only permitted roles see the report

    Control access through Moodle's capability and role settings rather than by hiding links. Confirm which role may view the report and which may edit it, then assign those capabilities at the correct context, such as system or category level. Log in as a non-admin account from each role that should not see the report and confirm it does not appear and cannot be opened by direct URL. The step is done when each test account sees exactly what its role allows, and the results are written down for the report owner.

  6. Configure scheduled delivery

    If the report needs to reach people on a schedule, add a scheduled task that emails the report or saves it in a defined format, and choose recipients from the set your access review approved. Confirm that cron runs on the server, because scheduled delivery depends on it. Keep recipients who are not Moodle users in mind, since they receive data outside the access controls. The step is done when a manual run delivers the expected file to an approved recipient and the scheduled run appears in the task logs.

  7. Record the definition and review it on a set cycle

    Store the agreed definition, the test cases with their expected results, the capability settings and the schedule in your change records or documentation. Set a review point with the report owner, and repeat the test cases after each Moodle upgrade or large data change. Confirm the review interval with your governance team, since this page does not set one. The step is done when a colleague who did not build the report can rerun the tests and reach the same results.

How report sources, conditions and joins shape the results

The source you pick in the Moodle report builder decides which records a report can ever see. A report is built on a base source such as courses, users, enrolments, or course completions, and every row in the output is one record from that base. Conditions and filters then narrow that set, but they cannot add records the source does not return. For example, a report built on the course completions source will not list a learner who was enrolled but never completed anything, so a compliance report that must cover all enrolled staff needs an enrolment-based source instead. Before building anything, write down the population the report must cover and confirm that the chosen source reaches it.

Combining sources is where completeness and accuracy usually break. When a report draws on a related source, such as enrolments joined to completions or users joined to grades, the join determines whether a learner appears once, several times, or not at all. A user with three enrolments can produce three rows, and a learner with no completion record can disappear from an inner-style result. Conditions applied to a joined source can also filter out the base records you wanted to keep. Check each report for duplicated rows and for expected people who are missing, and confirm the exact join behavior for your Moodle version in the report builder documentation, because the available sources and their options change between releases.

Validate every report against a known sample before anyone relies on it as evidence. Choose a small set of learners or courses whose outcomes you already know, such as one learner who completed, one who is still in progress, one who was unenrolled and one who was enrolled twice, then run the report and compare each row with the source data in the database or the course pages. Record the expected count, the actual count and any differences, and repeat the check after every Moodle upgrade, plugin update or change to a condition. Keep the test data and the results with the report definition so an auditor or a manager can see how the figures were established.

Access control and data protection for scheduled reports

Custom reports in Moodle can carry grades, completion records and personal details, and scheduled delivery copies that data into email and files outside the report view. The cards below cover the decisions that keep access aligned with your data protection rules: who builds and receives reports, what the exports expose, and what happens when people leave.

Report creation and viewing rights

Building a custom report and viewing one are controlled by separate capabilities in Moodle's role system, so a user who can read a report may not be allowed to edit its source, conditions or columns. Review which roles hold the report builder capabilities at system and category level, and check whether managers have inherited rights they do not need. Confirm the exact capability names in your Moodle version before you write the role matrix.

Plugin types docs

Scheduled report recipients

A scheduled report is sent to a fixed list of recipients chosen when the schedule is created, and that list does not change because someone's role changes. Require a named owner for each schedule, restrict who can add external email addresses, and review schedules that send to groups rather than individuals. Ask the reviewer to confirm which recipients received the last delivery.

Personal data in exported files

CSV, Excel and PDF exports copy every selected column into a file that may be saved, forwarded or attached to tickets. Remove identifiers the purpose does not need, such as full names where a learner ID is enough, and avoid free-text fields that teachers may fill with health or disciplinary details. Decide where export files are stored and how long they are kept, because the report view and the attached copy follow different paths.

Leavers and changed recipients

When a staff member leaves, their scheduled reports may keep running under an account that should no longer exist, and recipients outside the organization may keep receiving learner data. Add schedule ownership to your offboarding checklist, reassign or disable schedules owned by leavers, and review external addresses each term. Confirm how suspended accounts affect scheduled tasks in your version.

Logging report access and changes

Moodle's standard logs record many actions, but you should confirm whether report views, exports and schedule edits appear in them for your version and report source. Where they do not, decide whether to add a custom log or to rely on the mail server and file store records. Set a retention period that matches your audit needs and check that log access itself is restricted to a small set of roles.

Keeping report access aligned with policy

Access rules drift as courses, categories and staff roles change, so the policy needs an owner and a review cycle. Document which data categories each report may use, tie report permissions to the same role model used for course access, and retest after each Moodle upgrade because capability names and report features can change between releases. Ask your Moodle administrator to confirm the review schedule before the first report goes live.

When a separate analytics stack is still needed

The report builder covers reporting inside one Moodle site well, but a separate analytics stack becomes the better home once a report needs data that Moodle does not hold or cannot join cheaply. The usual cases are cross-system reporting with an HR system or student information system, where staff records, contract dates or enrolment outcomes must be matched to course activity; long-term history kept beyond what a live site should retain; joins across many sources that would force custom SQL into the production database; and executive dashboards that combine learning data with finance or operational figures. Before deciding, list each report, its data sources and how often it must refresh, and note who owns each source.

Moodle's learning analytics and at-risk student predictions are a separate subject with their own models, data requirements and privacy review, so they should not be treated as a reason to build a warehouse by default. The practical question is whether the combined data needs to leave Moodle at all. A data pipeline such as an Apache Airflow style scheduled extract, or a BI tool connected to a read-only copy of the database, can usually serve the same audience with less risk to the live site. Confirm with your Moodle version and hosting team which database replica or export method is supported, rather than assuming direct access.

Moving data out of Moodle moves personal data too, so governance comes first. Agree on which fields leave the platform, who may see identifiable learners, how long copies are kept and how deletion requests reach the copy. Record the data owner for each source, document the join keys used to match HR and Moodle identities, and test that a withdrawn or leaving user disappears from the downstream dashboards. Ask any vendor or internal team to show how access is granted and logged in the analytics layer, since a dashboard that is easier to open than the Moodle report can quietly become the weaker control.

Questions buyers ask about Moodle custom reports

What drives the cost of building custom reports in Moodle?

The cost follows the number of reports, how many data sources each one joins, and how much the compliance and data owners have to decide before anyone builds. Simple operational reports that use the report builder's standard sources are quick to specify. Reports that combine course completion, HR data and custom profile fields need more mapping, testing against real records and sign-off. Any engagement is priced from a written scope, so the quote should list each report, its audience, its data fields, its schedule and its access rules. Ask whether the quote includes handover documentation and training for the internal team, since those are the parts that keep recurring costs low.

How long does it take to get the first usable Moodle report?

The first report usually takes longest because the team has to agree definitions, such as what counts as completed, active or overdue, before any report is built. A single operational report can be specified and tested in a short cycle once its data owner confirms the fields. Duration depends on how many stakeholders must review the output and how many data sources are involved. No fixed timeline applies across organizations, so ask for a schedule tied to the agreed scope, with a checkpoint where the first report is reviewed with real data before the rest of the list is built.

What does the work need from our team?

Three groups carry most of the work. Data owners must define each field and confirm which records are authoritative, for example the system of record for employee status. Compliance leads must state what evidence an auditor or accreditor will ask for and who may see it. Moodle administrators must provide a test copy of the site, a role and permission model, and a place to schedule and receive reports. Without these inputs, reports are built on assumptions and then reworked. Agree in advance who approves each report before it goes live and who answers questions after handover.

Can our own staff build and maintain these reports after handover?

Yes, for many operational reports. Moodle's report builder lets administrators with the right capability create custom reports from defined sources, add conditions and columns, and set up scheduled delivery without writing code. Staff who know the Moodle data model and the business rules can extend those reports over time. Reports that need joins outside the standard sources, custom profile logic or tight access control are harder to maintain without experience. A practical approach is to have the partner build the first set, document each one with its purpose and owner, and train two or three internal staff to make changes under a review step.

How do custom reports change when we upgrade Moodle?

Reports built in the report builder are stored in the database, so they survive upgrades, but each Moodle release can change report sources, fields or capabilities. Test every custom report on a staging copy of the upgraded site before the production upgrade, and check scheduled deliveries and access roles afterwards. Upgrade paths also set the database and PHP minimums, so the report testing belongs in the same plan. Check the release notes for the version you are moving to, and confirm with your team whether any custom reports depend on a third-party plugin that must be updated first.

When is outside help worth it for Moodle reporting?

Outside help pays off when the reporting needs cross the Moodle boundary, when compliance evidence must be defined with auditors, or when the internal team lacks time to design and test reports. A fixed-scope engagement gives you written deliverables, a documented report catalog and a tested handover. Ongoing retainers suit organizations that expect frequent new reports or upgrades. Build internal capacity in parallel so the knowledge does not stay with one person. DeployOpen prepares reports, controls and evidence for compliance assessments, but does not issue audit reports or certifications; independent auditors do that work.

Does the report builder replace a separate analytics stack?

For most operational and compliance reports inside Moodle, the report builder is enough. A separate analytics stack becomes necessary when you need to combine Moodle data with systems such as HR, finance or a student information system at scale, keep long history beyond what the site holds, or give analysts exploratory tools with their own access model. Confirm early which questions the business needs answered, then decide whether they can run against Moodle directly. Moving reporting data out of Moodle also adds a copy that must be secured, retained and covered by your data handling rules.

How a Moodle report moves from source to recipient

A report starts in the Moodle database, where a report source selects the tables and fields it can read. Conditions and the capabilities of the viewing user then decide which rows and columns appear on screen. The same definition can run on a schedule and send an export to a recipient, which is the hand-off to check. Once a file leaves the Moodle site, access control is no longer enforced by Moodle, so the external boundary needs its own review.

Data path from the Moodle database through access checks to external recipients.

Official Moodle sources for reporting

Before you rely on any report builder feature, confirm what your Moodle version actually ships. Report sources, conditions, scheduling and access control have changed between releases, so the release you run decides what you can build. Start with the Moodle GitHub repository, where the report code lives in core and in the plugins Moodle HQ maintains, then check the release notes for your exact version. The repository is licensed under GPL-3.0, so you can read the code that generates each report and check how a condition or scheduled task behaves before you promise it to a stakeholder. Use the Moodle GitHub repository as the primary reference for code-level questions.

Next, use the Moodle releases page to map your site to a support window. Moodle ships major releases in April and October and minor point releases every two months, so a report you build today may depend on a feature that a later point release changes. Compare your installed version with the general and security support dates listed on that page. If your site is on a version that has moved to security-only support, plan the report build around the upgrade you will need, and record the version in your reporting design document so the team knows which behavior to test against. Confirm these dates with your own upgrade calendar before committing to a delivery plan.

How DeployOpen scopes and delivers Moodle reporting

DeployOpen plans, builds, documents and supports Moodle custom reports inside infrastructure you control. Each engagement starts from a written, fixed scope that names the report sources, the audience for each report and the access rules that apply before any report is built.

How we scope

  • Inventory the questions each team needs answered and the decisions those answers support.
  • Map each question to report builder sources, fields and conditions, and note any data that needs a custom source.
  • Agree who may view, export and receive each report, and which roles must be excluded.
  • Record scope, deliverables and timelines in writing before build work begins, as engagements are fixed-scope.

How we build

  • Create custom reports with the report builder, setting conditions and columns against a test copy of the site.
  • Configure scheduled delivery and test recipients, file formats and frequency with real sample data.
  • Verify figures against source data, such as completion records, enrolments and logs, before sign-off.
  • Review whether any question needs a separate analytics stack and state that finding in the scope document.

How we hand over

  • Document each report's purpose, source, conditions, owner, recipients and access rules in a handover pack.
  • Provide a runbook covering how to clone, edit and schedule reports, and how to check that a schedule ran.
  • Walk administrators and report owners through the build so they can maintain reports after handover.
  • Record the Moodle version each report was tested on, so upgrades can be checked against that baseline.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Retest reports after each Moodle upgrade, including the version your site runs at that time.
  • Review access rules and scheduled recipients when staff roles or organizational units change.
  • Confirm with your team which support tier, response expectations and review cadence the retainer will cover.

Sources and further reading

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.