Delegated administration in Moodle

Delegated administration lets department or tenant administrators manage their own users, courses and reports without site admin rights. This page covers the Moodle mechanisms, the trade-offs and what to confirm before you build it.

On this page

Delegated administration in Moodle: when local admins need their own control

Delegated administration lets a department, school or client group manage its own users, courses and reports inside Moodle without holding site administrator rights. Teams need it when a central Moodle team serves several groups, and local staff must enrol learners, manage course content and see progress for their own people, while the central team keeps control of site settings, plugins, authentication and upgrades. In standard Moodle, the main tools are category-level roles, cohort-based assignments and custom roles that bundle only the capabilities a local admin needs. Each one answers a different question: where the person can act (a category or course), who they can act on (a cohort or set of users) and what they can do (the capability list in the role).

The practical decision is which combination of these tools matches the access your organization must give. A category manager can usually handle course creation and enrolment within one category, while a custom role can remove capabilities such as editing site-wide settings or changing user profiles beyond the local scope. Scoped reporting is the part teams most often underestimate: a local admin should see progress and completion only for their own learners, and you should test that the report views, course reports and grade reports respect the assigned context before handing access over. Exact capability names, default role permissions and report behavior differ between Moodle versions, so confirm them against the release notes for the version you run before you write the role definitions.

Which delegation mechanism fits which administrator

This table compares four ways to give a local administrator control in Moodle: category-level roles, cohort-based roles, custom roles and scoped reporting. Read each row to see what the administrator can do, what stays out of reach, how much setup effort to expect and which situation it suits. The main takeaway is that standard Moodle delegation covers management of courses and users within a boundary, but it does not give separate branding or data isolation.

MechanismWhat the local admin can do and cannot reachSetup effort and when it fits
Category-level rolesCan manage courses, enrolments and category settings inside assigned course categories. Cannot change site settings, plugins or users outside those categories, and sees the same site theme and branding as everyone else.Low to moderate. Assign category-scoped roles and keep the category tree stable. Fits departments or client groups that share one look and need course-level control only.
Cohort-based rolesCan enrol and manage members of a cohort and apply roles where the cohort is used. Cohorts are site-wide, so reach depends on where the cohort is assigned, and cohort membership does not by itself limit what the admin can see in courses.Low to moderate. Requires disciplined cohort naming and a clear owner for each cohort. Fits group-based enrolment for teams that span categories, but needs review to avoid unintended reach.
Custom roles for local adminsCan be given only the capabilities the role defines, such as managing users or viewing reports, in the context where it is assigned. Capabilities that are not granted, including site administration, stay out of reach, but each capability must be checked against Moodle's role definitions.Moderate to high. Requires a role design exercise, testing in a staging site and re-checking after each upgrade. Fits local admins who need a defined set of tasks, such as user management without course editing.
Scoped reportingCan run and view reports limited to courses and users within their assigned contexts. Depends on report builder access and correct capability assignment. Cannot see users or courses outside that scope.Moderate. Requires testing that reports return only in-scope data. Fits managers who need completion and progress figures without access to the wider site.
Separate IOMAD company managersA packaged option in IOMAD where company managers administer their own company's users, courses and licences. Reach and branding are managed by the IOMAD structure, not by standard role assignment.Higher, because it adds a plugin and its upgrade cycle. Fits multi-client training where each client needs its own managers. See the IOMAD setup and tenancy model topics for the full comparison.

How a delegated role reaches users, courses and reports

The diagram starts with the site administrator, who assigns a role in a category or cohort context. Everything above the dashed boundary stays site-wide, while the delegated role only acts on the courses and users inside that context. The local administrator sees reports filtered to that scope, so the key check is that no path leads from the delegated context back to site-level settings. Confirm the exact capability list for each role against your Moodle version before you grant it.

Site administrator grants a role that only reaches courses and users in its context.

How category roles and cohorts limit what local admins see

A role assigned in a Moodle category applies to that category's courses and to any subcategories beneath it, because role assignments inherit down the context tree from category to subcategory to course. A category manager given a role in the Faculty of Health category therefore sees and edits the courses in every subcategory under it, including ones created later. Scope stops at the category boundary. It does not extend sideways to sibling categories, and it does not extend up to the parent. Cohorts work differently. A cohort is a site-wide or category-scoped group of users that can be used for enrolment, for cohort sync, and as a filter in reports. Assigning a cohort to a course enrols its members, but membership alone does not give a local admin any rights over those users. Decide early which of the two mechanisms controls each thing your local admins need to do.

The most common mistake is assigning a delegated role at the site context. A role held at system or site level inherits into every category and course on the site, so a local admin meant to manage one department's courses can see and act across the whole installation, including other departments' users and reports. The same risk appears when a role is granted by a broad cohort or by a plugin that assigns roles at site scope. Before you rely on any delegated role, sign in as a test account holding only that role, open a course in a sibling category, and open the participant and report pages for users outside the intended group. Confirm which pages hide, which still show data, and whether capabilities such as viewing user profiles or site-wide reports leak through. Repeat the check after each upgrade and after installing a plugin, since reporting and user-listing behaviour can differ between Moodle versions and between plugins that extend them.

Treat the test results as the specification for your configuration, not the documentation. Record which context each role is assigned at, which cohorts feed enrolment or reporting filters, and which pages the test account could reach. Ask your implementation partner or your own administrators to reproduce this check on a staging copy of your site, since the same role definition can produce different reach once a custom plugin or a new major release changes capability checks. Where the test shows reach you cannot accept, the options are narrower role definitions, moving the role assignment lower in the category tree, or a separate site for the group that needs strict data separation. The published Moodle release notes for your target version are the next place to check capability changes.

Setting up a local admin role in Moodle

This sequence turns a tenant or department into a scoped Moodle area where a local administrator manages their own users, courses and reports without holding site administrator rights. Each step ends with a check that the boundary holds before the next step begins.

  1. Map the tenant or department structure to categories

    Start by listing each department, client or school that needs its own administrator, then build a matching course category tree in Moodle. Decide whether each tenant gets a top-level category or a branch under a shared parent, because the category context you choose later determines what the local admin can reach. Record the decision in a short design note that the site administrator and the business owner both sign off. Done means every tenant has exactly one category that holds its courses, and no course sits in a shared category by accident.

  2. Decide cohort and user membership rules

    Decide how users join each tenant: through a cohort per tenant, through an authentication attribute such as an organisation field, or through enrolment in the tenant's courses. Cohorts are site-wide objects, so a local admin who can manage a cohort can see its members, which makes cohort naming and ownership a security decision. Agree who creates cohorts and who may add or remove members. Done means you have a written membership rule for every tenant and a list of which account type creates each cohort.

  3. Create the custom role from a base role

    In Site administration, open the roles page and duplicate an appropriate base role, such as the course creator or manager role, rather than building from nothing. Remove capabilities the local admin does not need, and review each capability against the category and user management pages it unlocks. Keep site-wide capabilities such as system configuration, plugin installation and site-level reports out of the role. Confirm the exact capability list against your Moodle version's documentation, because capability names and defaults change between releases. Done means the role exists with a reviewed capability list and a description that states its purpose.

  4. Assign the role in the tenant's category context

    Assign the custom role at the category context of the tenant, not at the system context, so its permissions apply only to courses and users inside that category. Check the assignment on the category's permissions page and confirm no site-wide role grants the same person broader access. Where a user also holds a site-wide role, the broader grant wins, so review that user's existing assignments first. Done means the local admin's role list shows one scoped assignment and no system-level assignment that would widen their reach.

  5. Restrict site-level settings and plugins

    Confirm the local admin cannot reach site administration pages that change global behaviour, including authentication, plugins, site policies and system-wide configuration. Review which admin pages the role can open, and where a capability grants a setting that affects all tenants, remove it or move the task to the site administrator. Keep a short list of tasks the local admin may perform and a list of tasks reserved for the site team. Done means the local admin's account opens only the pages on the first list and returns an access error on every page in the second.

  6. Scope reports to the tenant's users and courses

    Set up reports so the local admin sees only their own learners. Use the course and category context for course reports, and check which report builder or log views expose user data across the site before handing them over. Where a report would show users outside the tenant, adjust the role or create a restricted report owned by the site team. Done means a report run by the local admin lists only users enrolled in the tenant's categories, and the logs they can open contain only events from those courses.

  7. Test with a non-admin account

    Create a test account in the tenant, give it the local admin role, and sign in with it in a separate browser session so you are not testing as an administrator. Check that the account can manage its own tenant's users and courses, and confirm it cannot see another category's users, open another tenant's courses, change site settings or view cohorts belonging to other tenants. Repeat the tests after any role or category change. Done means each test is written down with its result, and any failure is fixed and retested before the role goes live.

Choosing a delegation pattern by who is administering

A department head usually needs to manage their own staff, courses and enrolments inside a category they control, without touching site settings or other departments. In standard Moodle this is typically built from a category manager role assigned at the category level, with the department's staff enrolled through a cohort or category enrolment method and course-level roles such as editing teacher used for day-to-day course work.

  • Category role assignment: Assign the category-level manager role on the department's category only, so course creation and enrolment stay inside that branch of the category tree.
  • Cohort-driven membership: Use cohorts synced from the HR source or a managed list so staff join and leave the department's scope without manual edits by the site team.
  • Custom local role: Where the department should not be able to change grades, backups or user accounts, create a custom role that removes those capabilities and assign it at category level.
  • Reports on their own courses: Confirm which course completion, grade and activity reports the head can run, and whether they should see learner names or only aggregates.
  • Limits to test: Check that category managers cannot see users outside the department through the global user list or site-wide reports.

Confirm with the internal policy who approves new courses, who may enrol external users and whether staff records count as personal data under the organization's own data handling rules.

Where delegation can leak access and how to test it

Delegated administrators work inside a shared Moodle site, so a single over-broad role, a misplaced assignment or a report with the wrong filter can expose users outside their remit. The cards below cover the places where access tends to widen, the control to apply at each one and a test a reviewer can run before and after each change.

Over-broad capabilities in custom roles

A custom role for a local admin is often copied from a manager role and then extended with extra capabilities during a support request. Check each capability against the job the role must do, and remove any that let the holder change site-wide settings, install plugins or edit users outside their categories. Test by logging in as a test account with the role and attempting one action from each sensitive group, such as site configuration, user deletion and role assignment. Every capability should be justified in writing.

Moodle 5.1 notes

Roles assigned at the wrong context

A role granted at the site or top category level applies to every course and user beneath it, which is the most common way delegation spreads beyond its intended scope. Assign each local admin role at the category context that matches their tenant or department, and confirm no duplicate assignment exists higher in the tree. Test by listing each user's role assignments by context and confirming that every assignment points to the category they are meant to manage.

Reports exposing users outside scope

Reports and course-level views can show learner data from courses or cohorts the delegated admin should not see, particularly when a report is built at site level and then shared. Build reports from a category or cohort filter, restrict who can run them, and review exported columns for personal fields that the role does not need. Test by running each report as a delegated admin on a seeded dataset that includes learners from another tenant and confirming none of them appear.

Cohort changes that widen access

Cohorts can drive enrolments, role assignments and report filters, so adding a user to a cohort can grant them access they should not have. Restrict who can edit each cohort, record the source of its membership and review cohorts that feed enrolment methods. Test by adding a test user to a cohort as the delegated admin and checking that only the intended courses and roles change, and that the change is visible in the logs.

Unmanaged local admin accounts

Local admin accounts that are created outside the identity provider, or that outlive a role change, keep access after the person has left or moved. Tie every local admin to a named individual, disable accounts through the same offboarding process as other staff, and review the list of accounts with delegated roles on a fixed schedule. Test by removing a role from a test account and confirming that its sign-in and capabilities stop working in the next session.

Audit logs local admins can read

If a delegated admin can view or export the logs for their own actions, they can see or alter the record of who changed what. Confirm which logs are visible to each delegated role, keep the full site log readable only to the central security team, and forward a copy outside Moodle where your policy requires it. Test by performing a sensitive action as a delegated admin and checking whether that admin can see or edit the resulting log entry.

What delegated administration costs and what the work needs from you

How much effort does a delegated administration design take?

The effort depends on how many distinct administrative groups you have, how far their rights must differ from one another, and how many places in Moodle those rights must be set. A design with one department and two local admins is a small exercise. A design with many departments, shared courses, cohort-based roles and scoped reports takes longer because each combination needs a decision and a test. No duration is given here. Ask any partner for a quote built from a written list of groups, roles and reports, and confirm which of those items are in the fixed scope.

Can an internal team set up delegated administration without outside help?

Yes, a team with Moodle administration experience can configure category roles, cohorts and custom roles in core Moodle, provided it has a test site and time to check each permission. The harder part is usually the design: deciding who may enrol, who may assign roles, and what a local admin should never see. Teams that have not done this before often find that a role which looks narrow still allows an action they did not intend. An outside review of the role matrix can catch those gaps before users are affected.

What does the work need from our side before it starts?

Three inputs decide most of the outcome. The first is a role matrix that lists each administrative task, such as enrolling users, creating courses or running reports, and who should perform it. The second is an organization structure that maps departments, schools or client groups to Moodle categories or cohorts. The third is a named sign-off owner, usually someone in the business who can approve each role and report scope. Without these, the design tends to stall while questions are answered one at a time.

How long does validation take once the roles are built?

Validation time depends on the number of roles, the number of test users needed for each one, and whether the client has a staging copy of its live data. Each local admin role should be tested for what it can do, what it cannot see, and what happens when a user moves between groups. Ask the partner to show the test cases and the sign-off record in the proposal. No duration is given here, so compare quotes on the number of test cases and environments they include.

How are changes handled after the delegated roles go live?

Changes recur. New departments, staff moves and new reporting requests all change who should hold which role. Decide in advance who may request a change, who approves it, and where the change is recorded. Role changes made by hand in the Moodle interface are hard to audit later, so many teams keep the role matrix as a versioned document and apply changes through a defined process. Ask whether a retainer covers these changes and how urgent requests are handled.

Does delegated administration work the same way on every Moodle version?

The core concepts, categories, roles and cohorts, have been part of Moodle for a long time, but the exact capabilities, default roles and report options can change between releases. Before a design is treated as final, confirm it against the Moodle version you will run and against any upgrade you plan. Check the release notes for the version you are targeting, and retest local admin roles after each upgrade, because a capability change can widen or narrow what a role can do without any visible warning.

What is the risk if delegated roles are set up incorrectly?

The main risks are data exposure and unintended changes. A local admin with a broad capability may see users, grades or reports outside their group, or may enrol people into courses they should not manage. Because these errors are often silent, they can persist for months. Ask for a permission review that tests each role against the matrix, and confirm that the design includes a regular review of role assignments, especially after staff leave a department.

Limits to confirm in your Moodle environment

Delegated administration in Moodle is built from roles, categories and cohorts, and each of those has edges that depend on your Moodle version, your plugins and your upgrade habits. The cards below list the limits to test before you promise a tenant or department control over its own users and reports.

Capabilities change between versions

Role capabilities, reporting screens and the admin pages a category manager can reach are not fixed across releases. A role that works on the version you run today may gain or lose a permission after an upgrade. Before you grant delegated rights, check the release notes for the exact version in production, then list each capability your custom roles depend on and confirm it still exists. Confirm the capability list against your version's release notes.

Moodle releases

Plugins can override role behavior

Third-party local, block and report plugins often read capabilities directly or add their own. A plugin may show a tenant admin data that the role was never meant to expose, or hide a page the role needs. Review every installed plugin that touches users, grades, enrolments or reports, and test each delegated role against those pages with a non-admin account. Record which plugin owns which capability so the next upgrade does not break it silently.

Delegation is not data separation

A category manager or cohort-based role limits what a local admin can see and change through the interface, but users remain in one database and site-wide reports and site administrators can still reach all of them. If a client contract requires that one tenant cannot access another tenant's records under any circumstance, delegated administration alone will not meet it. Ask your legal and security teams which separation level the contract actually requires before you design roles.

Categories do not separate branding or URLs

Course categories organize content and set who can manage it, but they do not change the site name, logo, theme, login page or domain. Tenants who expect their own branded entry point will need a different approach, such as a separate theme setup, a separate site or a multi-tenant platform. Confirm with stakeholders which visual and URL expectations are fixed in writing, because categories will not satisfy them.

Reporting scope has gaps

Reports that a local admin can run are filtered by the role's permissions, but not every core or plugin report applies the same filter. Some exports, logs and custom reports may return users or courses outside the admin's scope. Before you share reporting access with an external tenant, run each report the role can reach and compare the output with the users that role is meant to see. Plan a manual review for any export that leaves the platform.

Re-test delegation after every upgrade

A successful test of delegated roles is valid only for the Moodle version, plugin set and role configuration you tested. Each upgrade can change capabilities, plugin compatibility and default role assignments. Build a short test script covering sign-in, user lists, enrolments, grade access and reports for each delegated role, and run it in staging before every production upgrade. Keep the results with your change records so you can show what was checked.

How DeployOpen scopes and delivers delegated administration

DeployOpen plans delegated administration in Moodle as a written scope before any configuration starts, then builds roles, category structure and scoped reporting in the client's own infrastructure. Each engagement ends with documented role matrices, tested permissions and a handover the client's administrators can run without us.

How we scope

  • Map which departments, tenants or client groups need local control and which tasks each local administrator must perform
  • Inventory the categories, cohorts and enrolment methods that will carry delegated rights, and confirm where each user record lives
  • Agree the written scope, deliverables and timeline with you before work starts, since most engagements are fixed-scope
  • Confirm your Moodle version and plugin dependencies, including any plugins that alter role or reporting behavior

How we build

  • Configure category managers, cohort-based roles and custom roles so local administrators reach only their own users and courses
  • Define capabilities for each custom role and document the reason for every permission granted beyond the standard roles
  • Set up reporting filtered to each tenant's users, then test that local administrators cannot see or change other groups' data
  • Test role assignments with sample accounts that mirror each delegated profile, including attempts to exceed their scope

How we hand over

  • Deliver a role and permission matrix that lists each delegated role, its capabilities and its category or cohort boundaries
  • Provide written runbooks for onboarding and offboarding local administrators, including how cohort membership is changed
  • Walk your site administrators through the scoped reports and the checks they should repeat after each Moodle upgrade
  • Document known limits of the chosen approach so your team can decide early whether separate sites are needed

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer if you want DeployOpen to review role changes over time
  • Retest delegated permissions after Moodle upgrades and plugin updates, since capability changes can affect local administrators
  • Ask any support provider to confirm response arrangements, access to your environment and who holds administrator credentials
  • Confirm with us how changes to role definitions are requested, reviewed and recorded in your change process

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.