Restricting Moodle AI by course, activity and role: why a pilot needs it
AI access in Moodle can be limited in layers: at the site level, by role capability, at the course level and, from Moodle 5.1, at the activity level. That layering is what lets an institution start a rollout with selected courses instead of switching AI on everywhere on day one. The site-level setting decides whether a provider and its placements exist at all. Role capabilities decide which users, such as students, teachers or managers, can use an AI action. Course and activity controls decide where those capabilities apply. Moodle 5.1 is the release this topic associates with course and activity level controls, but the exact setting names, their defaults and how they combine must be confirmed in the Moodle 5.1 release notes and on a test site before the pilot design is final.
Access design and upgrade planning should happen together. Moodle 5.1 has general support until 5 October 2026 and security support until 19 April 2027, so a site that adopts AI controls on 5.1 will need a defined move to a later release within that window. Confirm which release your institution will run after 5.1, and check its server requirements and upgrade path before the pilot is built, because controls configured on one version may behave differently after an upgrade. Record the access model in a written matrix that lists each provider, placement and action, the roles allowed to use it, and the courses or activities in scope, and retest that matrix after every upgrade. Exam pages and assessments are a common case where AI should be blocked entirely, so plan those exclusions explicitly rather than relying on the pilot's course list alone.
How the access layers stack when a user opens an AI feature
The check starts at site-level AI enablement and provider setup, then moves through the user's role capabilities, course-level availability, activity-level availability and exam-page exclusion. A request is allowed only if it clears every layer, and any layer that fails hides the feature. Confirm the actual evaluation order on your Moodle version in a test course before you rely on it for an exam or pilot.
Each access layer must pass before an AI action is shown to the user.
Which control fits which rollout decision
This table compares five control levels for limiting Moodle AI, from site-wide enablement down to exclusion on exam pages. Read each row by asking who sets the control, what it governs and when it fits your rollout stage. Use the final column as a checklist and confirm each control's availability in your Moodle version against the release notes and your own test site before you plan the pilot around it. The main takeaway is that broad controls set the ceiling, and narrower controls only shape use within that ceiling.
| Control level | What it governs and who usually sets it | When it fits | What to confirm in your version |
|---|---|---|---|
| Site-wide enablement | Site administrators switch AI providers and placements on or off for the whole site. | Keeping AI off until provider, data protection and policy reviews are complete. | Confirm the provider and placement settings on your test site before the pilot. |
| Role capabilities | Site administrators decide which roles can use AI features through capabilities assigned to roles. | Limiting AI to staff roles or pilot groups while students remain out. | Confirm which AI capabilities exist in your version and which roles hold them by default. |
| Course-level access | Course creators or teachers decide whether AI assistance is available within a course. | Piloting with selected courses that have agreed use cases. | Confirm whether a course-level control exists in your version and who can change it. |
| Activity-level access | Teachers control AI use for individual activities or resources, if the version supports it. | Allowing AI on practice activities while keeping graded work out of scope. | Confirm the activity-level control in the 5.1 release notes and test it on a sample activity. |
| Exam-page exclusion | Site administrators or course staff keep AI out of assessment pages using the strongest control available. | Any course where AI use during an assessment would breach exam rules. | Confirm how each control applies to quiz attempts and test it with a student account. |
What teachers, students and administrators each need to decide
Teachers decide whether AI is offered in their own courses and which activities it touches. During a pilot they are often the first to notice how a setting behaves in practice, so they need to know what AI controls appear in their course, in the activity editor and in any course-level assistance. Their decisions are narrower than an administrator's, but they carry the classroom consequences.
- Whether to request a pilot place: Confirm the course has a clear teaching purpose for AI and a named owner who will review how it went.
- Which activities carry AI: Decide activity by activity, paying particular attention to quizzes, assignments and any activity where AI output could be submitted as student work.
- What they see as a teacher: Check the placements from a teacher account, since the teacher view may differ from the student view.
- Assessed pages: Ask for AI to be hidden on any assessed activity before it opens to students, and confirm the change with the administrator.
- Feedback channel: Agree with students how they should report confusing or unexpected AI behavior, and who collects those reports.
Before telling students that AI is available, test each setting in a copy of the course using a student test account and confirm what the teacher has changed.
Students experience the restriction more than they make it, so their main need is clarity. When AI is available, they need to know where it appears and what it is for. When it is hidden, they need to understand that the absence is intentional. Mixed courses cause most of the confusion, because one section may show an AI feature while a neighboring activity does not, and students may assume a missing option is a fault.
- What appears when available: The AI entry points the course enables, described in plain language that matches the course's rules.
- What disappears when hidden: Confirm whether a hidden placement leaves an empty gap or removes the item entirely, and check that no half-working control is left on screen.
- Mixed courses: Tell students which activities allow AI before the first one opens, so that a restricted activity reads as a decision rather than an error.
- Policy acceptance: Confirm whether students must accept the AI user policy before using the feature, and what happens if they decline.
- Assessment pages: Explain, in the course introduction, why AI is absent from assessments so the absence reads as intentional.
In the pilot course, check the student view after each change, including the page a student lands on when an activity has been hidden.
Administrators own the roles, the capabilities behind them and the written record of why each setting was chosen. A change to a capability on one role can reach more courses than expected, so administrators should review role assignments before changing course-level controls. They also approve which courses enter the pilot, and that approval should be recorded, not held as an informal agreement.
- Role capabilities: Review which roles hold each AI-related capability, including custom roles and any role assigned at category level.
- Scope of teacher control: Decide which course and activity settings teachers may change themselves and which stay with administrators.
- Pilot selection approval: Name an approver, typically a senior academic or learning technology lead, who signs off each pilot course against agreed criteria.
- Decision record: Log each change with its date, Moodle version, the role or course affected and the reason, so that an auditor or data protection team can trace it later.
- Assessment rules: Agree with academic integrity staff which assessment pages must never carry AI, and write that rule into the record.
Before writing the decision record, confirm the controls your Moodle version provides in its Moodle 5.1 release notes or the release notes for the version you run, then check effective permissions for a test user in each role after every change.
How to set up a staged AI pilot in Moodle
This sequence takes a Moodle site from a verified AI configuration on a test copy to a pilot limited to chosen courses, roles and activities, with exam content excluded and every setting recorded against an approver.
Confirm the Moodle version and AI provider on a test site
The platform or systems administrator builds a test copy of the production site and confirms its Moodle version, PHP version and database. For Moodle 5.1, PHP 8.2 or later is required (8.3 and 8.4 are supported), and the web server document root must point to the new /public directory, otherwise the site may show directory listings or errors. Configure the chosen AI provider on the test site and send one test request for each action you plan to pilot. The step is complete when the provider returns a response on the test site and the server check report shows no blocking issues. If the site is on 5.3 or later, confirm its requirements separately in the 5.3 release notes.
Agree the pilot cohort and courses
The project lead meets academic leads to choose the pilot courses, the teachers who will run them and the student groups that will use AI features. Record which courses are in scope, which are excluded (including any course with high-stakes assessment), and the named contacts for academic integrity and data protection. The output is a short pilot scope document listing course IDs, teacher names and cohort dates. You know this step is done when every in-scope course has a named academic owner who has agreed in writing to the scope.
Set site-level AI availability to the pilot scope
A site administrator opens the AI management settings in Moodle and limits the enabled providers and placements to what the pilot requires, leaving other actions switched off. Confirm that the AI user policy is in place for the pilot audience before users can access the features. Check the setting from a logged-out browser and a standard user account: the AI placements that the pilot does not cover should not appear. The step closes when a screenshot or settings export shows the restricted site configuration and the placements visible to a standard user match the scope document.
Adjust role capabilities for teachers and students
The administrator reviews the AI-related capabilities in the role definitions and sets teachers and students to the minimum they need for the pilot. Use a custom role or a context override rather than editing the default roles for the whole site, so the change can be reversed cleanly. Note which capabilities each role holds before and after the change. Verify by signing in as a teacher and a student on the test site and confirming that only the pilot actions are offered. The step is complete when the capability comparison is saved and both test accounts show the expected options.
Apply course and activity controls
In each pilot course, the course administrator or teacher uses the course and activity level AI access controls available from Moodle 5.1 to enable AI only for the pilot activities. Activities outside the pilot stay disabled even if the course is in scope. Confirm the exact controls in the 5.1 release notes for your build, as they vary by placement. Check by opening a pilot activity and a non-pilot activity in the same course with the test teacher account. The step is done when the pilot activity offers AI and the non-pilot activity does not.
Exclude exam and assessment pages
The course designer reviews every quiz, assignment and other graded or timed activity in pilot courses and confirms that AI access is disabled on each one, including any course page that links directly to an assessment. Keep a list of excluded activity IDs in the pilot record. Test this by attempting to reach an exam page with the test student account and confirming that no AI assistance or generation option appears. The step closes when the exclusion list matches the list of assessment activities and the student test shows no AI option on any of them.
Test each role in a test course
Create a test course that mirrors one pilot course, then enrol a test teacher, a test student and, if used, a test manager account. Each test account runs through the pilot actions and attempts one action outside the scope, such as an excluded placement or an excluded activity. Record the result of each test in a table with the role, action, expected result and actual result. Investigate any mismatch before the pilot opens. The step is complete when every role passes all expected results and every out-of-scope attempt is blocked.
Record the settings and the approver
The project lead saves the final configuration as a dated record: Moodle version, provider settings (with secrets held outside the record), site availability, role capability changes, course and activity lists, excluded assessments and test results. An approver from the academic and information security side signs off the record before any real users are enrolled. Store the record in the change management system and keep a copy with the pilot scope document. The step is complete when a signed approval exists and the record can be compared with the live site settings during the pilot review.
Disabling AI on exam pages and high-stakes activities
Exam and assessment content is where AI assistance carries the highest academic integrity risk, so it needs its own exclusion list rather than a side effect of course-level settings. The cards below cover how to define that list, how to test it across every role, and who signs it off before a pilot starts.
Defining what counts as an exam
Start with a written definition agreed by academic and assessment leads: which quizzes, assignments, workshops and external tools are graded, timed, proctored or used for certification. Map each definition to specific course IDs, activity IDs and page types. Illustrative example: a graded midterm quiz in a first-year course is in scope even if the course itself is a general pilot. The owner is the assessment lead, and the list should be reviewed whenever a new assessment type appears.
Moodle 5.1 notesPreventing AI in quizzes and assignments
AI placements can appear wherever a text editor or course assistance block is present, so an exam activity inside an otherwise allowed course may still expose AI. Confirm, for the Moodle version in use, which AI placements render on quiz, assignment and feedback pages, and whether access can be restricted at the activity level. Do not assume an exam-blocking control exists until the version's documentation confirms it. The owner is the Moodle administrator with the assessment lead.
Testing the exclusion for every role
An exclusion that works for students can still leak to teachers, managers, observers or custom roles that inherit AI capabilities at the system or category level. Build a test matrix with one test account per role, log in as each, and open every exam page to check for AI controls and AI actions. Record the results and repeat the test after every upgrade, plugin change or role edit. The owner is the Moodle administrator, with a security reviewer checking the evidence.
Handling reused exam content
Courses often copy quizzes or question banks from prior terms, so the same exam may appear in a pilot course and in a course that was never reviewed. Decide whether reused content is re-classified as an exam in each copy, and check duplicated activities, backups and restored courses before they go live. Ask the course owner to confirm that each copy has the same exclusion as the source. The owner is the course design lead, with the Moodle administrator checking restores.
Obtaining academic integrity sign-off
The exclusion list should be approved in writing by the academic integrity team before any pilot course is enabled, and that approval should name the Moodle version, the list date and the tests performed. Agree how changes are requested, who can add an activity to the list, and how urgent exclusions are made during an assessment window. Keep the signed list with the pilot records so the decision can be reviewed later. The owner is the academic integrity lead.
Confirming the version before relying on controls
The course and activity level controls described for this topic depend on the Moodle release in use, so the exclusion approach must be checked against the exact version installed. Moodle 5.1 was released on 6 October 2025 and has general support until 5 October 2026, while Moodle 5.2 was released on 20 April 2026. Confirm the version and its documented AI controls with the platform team before writing the exclusion procedure. The owner is the platform lead.
Moodle releasesPiloting AI with selected courses before a wider rollout
Start the pilot by choosing courses, not by switching AI on across the site. Pick courses whose teachers have asked for AI support and agreed to give feedback, and make sure the set includes a mix of assessment types: some courses with essays and graded assignments, some with quizzes drawn from the question bank, and some with mostly discussion or project work. A mix lets you see where course assistance and the editor's text generation help, and where they create integrity questions. Before the first course is enabled, write down what success looks like for that course, such as fewer routine questions in forums or teachers reporting time saved on feedback. Those measures are only useful if they were agreed before any data came in.
Decide in advance what the pilot measures. Track usage by course and activity, error rates from the provider connection, student and teacher feedback collected through a short survey, and any integrity concerns raised by staff. Confirm with your Moodle administrator which AI reports are available in your version and who can read them, because the detail of usage and user reporting, and the acceptance records that go with it, are covered on the sibling pages on policy acceptance and usage reports. Link the pilot to those governance steps: no pilot course should open until the AI user policy has been reviewed and the acceptance process is working, and the pilot owner should agree who reviews the usage data each month.
Set the expansion rule around review, not the calendar. Expand to the next group of courses only when the pilot review has been held, the open integrity and data protection questions have been answered by the people responsible for them, and the error and feedback results show the placement works as intended. A fixed date such as the end of a term can be kept as a checkpoint, but it should never force expansion when the review is not finished. Record each expansion decision with the evidence used, so that the approved configuration can be reproduced and audited later.
Security and operational considerations for restricted AI access
Access restrictions on Moodle AI are only as reliable as the routine checks around them. The cards below cover the recurring reviews, records and recovery steps that keep course, activity and role settings doing what the pilot approved, and name who owns each one.
Review role overrides after each upgrade
Upgrades can add, rename or change the capabilities that control AI actions, and a role override set in one release may no longer apply the way the pilot intended. After each upgrade, the Moodle administrator should compare every course and category override for AI placements against the approved access list, and confirm that students still cannot reach restricted activities. Use the upgrade test pass as the gate before the site goes back to general use. Confirm the exact capability names for your version in the release notes before testing.
- Release with course controls
- 5.1
Keep a log of access decisions
Each decision to enable AI in a course, lift a restriction or add a role should be recorded with the date, the requester, the approver and the reason. The log is what academic integrity and data protection reviewers ask for when they want to know why a course had AI available during an assessment. The learning platform owner should keep the log outside Moodle, linked to the change tickets, so it survives a site rebuild. Review entries at each term boundary.
Test restrictions after course copies
Copying a course or restoring a backup can carry over activities, placements and role assignments in ways that differ from the source course. A copied exam course may inherit AI access that was never approved for it, or lose a restriction that was set on the original. After any copy or restore that touches assessed content, the course owner should run a short scripted check as a student account and as a teacher account, and record the result. Ask the Moodle administrator to confirm the behavior for your backup settings before the first pilot.
Confirm provider credentials and data handling
Access settings decide who can invoke AI, but they do not change which provider receives the prompt, where the credential is stored or how long action records are kept. Changing a course restriction should not alter the provider configuration, and a provider change should not silently widen who can use it. The Moodle administrator and the data protection lead should check the provider settings and action record retention after each access change that affects a personal data context. Verify these items with the specific provider's documentation.
Limit who changes site AI settings
Site-level AI settings, including enabled providers and the default placements, are controlled by a small set of administrator capabilities. If many staff hold the administrator role or site configuration rights, an access restriction set at course level can be undone by someone who never saw the pilot decision. The Moodle administrator should list the accounts that hold these capabilities, keep the list short, and require a second person to approve changes to site AI settings. Review the list quarterly and after staff changes.
Include the access model in recovery
Disaster recovery documentation usually covers the database, files and configuration, but not the role overrides, placement settings and course-level exceptions that define who can use AI. Without them, a rebuilt site may reopen AI to exam courses that were restricted before the outage. The platform team should add the access model to the recovery runbook, store an export of the role and placement settings with each backup, and rehearse a restore that checks the exported settings against the live site. Confirm with your backup tooling whether these settings are included by default.
Questions buyers ask before restricting Moodle AI
How much effort does a Moodle AI restriction pilot take?
The effort depends on the size and shape of the pilot, not on the AI feature itself. The main drivers are the number of courses in scope, how many roles need different AI access, how many exam pages must be excluded, and whether existing role overrides already touch the relevant capabilities. A pilot with a few courses and one or two standard roles is mostly configuration and testing. Each added role, course or exam page adds review and test cases. Ask for a written scope that lists the courses, roles, exam pages and test cases, so each cost component can be tied to a specific item in the quote.
Can our own team set up AI restrictions without outside help?
Yes, for a small pilot that uses standard roles and is well documented. A team that already administers Moodle, has a test site and can run test accounts for students, teachers and managers can usually complete it internally. The work gets harder when you use custom roles, custom plugins or a long history of role overrides, because each one can change how a capability resolves for a user. In those cases, an outside reviewer can trace the interactions before you change production. Decide early which part your team will own and which part, if any, you want to contract.
What does our team need to provide for a pilot?
A pilot needs more than server access. Plan to provide the following before work starts:
- Access to a test site and to the production site, with administrator rights that allow role and course changes.
- Sign-off from academic and academic integrity leads on which courses and exam pages are in scope.
- A named approver who can accept the test results and authorize the production change.
- A list of courses, roles, exam pages and existing role overrides, with owners for each.
If your policy requires a data protection review before AI is enabled, add that reviewer to the approval path so it is not discovered late.
How long does setup take relative to Moodle's release cycle?
The release cycle sets the constraints, but it does not give a setup duration. Moodle ships major releases in April and October and minor point releases every two months, so a pilot can easily span a release. Confirm with your own team how long the configuration, testing and approval steps take in your environment. For example, Moodle 5.1 has general support until 5 October 2026 and security support until 19 April 2027, so a pilot on that version should have an upgrade decision planned before general support ends. Schedule the pilot so that testing finishes before a planned upgrade window, not during one.
Do AI access restrictions survive a Moodle upgrade?
You need to confirm this in the release notes for each target version, and then test it on a staging copy. Do not assume that course, activity or role settings carry over unchanged because a site was upgraded before. Check the release notes for the version you are moving to, rebuild or review the role overrides, and run the same test accounts after the upgrade. Also confirm the upgrade path itself: Moodle 5.1 requires sites to be on Moodle 4.2.3 or later. Record each result so the approver can see that restrictions were verified after the change.
Which Moodle version and server stack do we need for course-level AI controls?
The course and activity level access controls described for this topic come from Moodle 5.1, so confirm that version in the Moodle 5.1 release notes before you plan the pilot. Moodle 5.1 requires 64-bit PHP 8.2 or later, with 8.3 and 8.4 supported, and one of PostgreSQL 15, MySQL 8.4, MariaDB 10.11 or Microsoft SQL Server 2017 or later. The web server document root must point to the new /public directory, or the site may show directory listings or errors. Check these items on the test site first, since a server mismatch can block the pilot before any AI setting is reached.
Should we disable AI on exam pages or rely on role settings?
Use both, and test each one. Role capabilities control broad access by user type, such as who can use AI in course assistance or the editor. Course and activity level controls can narrow that access for specific pages, including exam pages, if your Moodle version provides them. Confirm the exact settings available in the Moodle 5.1 release notes before you write the design. Then test with a student account, a teacher account and a manager account in an exam page and in an ordinary course page, and record what each one can see and do.
Limits to confirm in your environment
The controls for restricting Moodle AI depend on the exact version, provider, placement and roles on your site. Each card below is a check to run on a test site before you widen access beyond a pilot group.
Access controls in your version
Course and activity level AI access controls are tied to specific Moodle releases, so the first check is whether your target version exposes the settings you need. Confirm the exact options in the Moodle 5.1 release notes, then reproduce them on a test site running the same version. Record which controls exist at course level, which exist at activity level, and which only exist as site-wide settings. Do not plan a pilot around a control you have not seen working in your own install.
Moodle 5.1 release notesProvider respect for course settings
Confirm whether each AI provider you plan to use honors the course and activity restrictions you configure in Moodle. Restrictions set in Moodle govern whether a request is sent, so test that a blocked placement makes no outbound call to the provider. Run the test against each provider in your shortlist, since behavior can differ between the cloud providers and a self-hosted Ollama server. Keep the test results with your change record.
Version support window and upgrade path
Access controls are only useful while your version receives updates, so check the support window before you build a policy around it. Confirm general and security support dates for your release on the Moodle releases page, and plan the upgrade path before the pilot starts. Major upgrades can change capability names, defaults and AI settings, so re-run your access tests after each upgrade. Ask whether your hosting partner or internal team can complete a test upgrade within your change window.
- Security support ends for 5.2
- 4 Oct 2027
Custom roles, plugins and themes
Custom roles, third-party plugins and theme overrides can change how capabilities behave, and an AI control that works on a default role may not hold on a customized one. List every custom role that can reach a course or activity, and test each one with a real account. Check whether any plugin or template override adds a path to AI features that bypasses the standard checks. Re-test after installing or updating any plugin in the same area.
Multiple AI placements together
Course assistance and the text editor are separate AI entry points, and a restriction applied to one may not cover the other. Map every placement you enable, then test each combination of course, activity and role against each placement. Pay attention to content that is generated in one area and then used in another, such as text drafted in the editor and posted into a course. Document which placement is allowed in which context so reviewers can check the mapping.
What learners actually see
Settings in the administration pages do not show what a student or teacher experiences in the course interface. Confirm the result by signing in as test users with each role, opening restricted and unrestricted activities, and capturing what appears on screen. Check exam and quiz pages specifically, since AI entry points there must be hidden or disabled as intended. Keep the screenshots and test accounts with the pilot evidence so the academic integrity and data protection teams can review them.
How DeployOpen scopes and delivers AI access controls for Moodle
DeployOpen treats AI access in Moodle as a staged rollout rather than a single switch. We agree the scope in writing, configure and test course, activity and role controls in your own infrastructure, then hand over the settings, test evidence and runbook your teams need to govern the pilot and extend it.
How we scope
- Inventory the courses, activities and exam pages where AI should stay off before any configuration starts.
- Agree which roles, such as students, teachers and course creators, receive which AI capabilities, in a written scope.
- Confirm your Moodle version and whether course and activity level AI controls are available on it, as these depend on release.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we build
- Configure role capabilities and course and activity level AI settings on a staging copy of your Moodle site first.
- Test that disabled AI placements stay hidden on exam pages for each role, including direct URL access attempts.
- Set up a pilot group of selected courses with documented entry criteria and a clear list of enabled placements.
- Review the controls against your access model so pilot settings match what your governance teams approved.
How we hand over
- Deliver a written configuration record listing every role capability, course and activity setting changed.
- Provide test scripts and results showing which roles can and cannot reach AI features in each tested area.
- Document the steps to add or remove courses from the pilot and to revert a setting if a problem appears.
- Train course administrators and site administrators on who approves changes and where access decisions are logged.
How we support
- Retest access controls after each Moodle point release or upgrade, since capability names and settings can change between versions.
- Review new courses and exam pages against the access model on a schedule you agree with your academic and IT teams.
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
- Ask us for a quote based on the written scope, including the number of courses, roles and placements in the pilot.

