插件本地插件稳定版

Bulk Roles Importer

local_bulk_roles_importerAgiledrop

  • Moodle 4.0–5.0
  • 更新 2025-04-17

Easily import multiple custom roles into Moodle from XML files or ZIP uploads, manually or on a schedule via GitHub or GitLab.
Bulk Roles Importer Moodle Plugin
The Bulk Roles Importer plugin allows Moodle administrators to efficiently import multiple role definitions from XML files. Roles can be imported either manually or automatically via integration with external repositories like GitHub or GitLab.
This plugin is ideal for Moodle sites managing custom roles across environments, supporting version control, or requiring regular role updates.
Features
Manual Import
Upload a single XML file or a ZIP archive containing multiple XML files.
Access the import interface via
Site administration → Users → Permissions → Import roles from a file .
Each file is validated to ensure it contains a valid <role> definition.
Invalid files are skipped with detailed error logging.
Automatic Import
Configure a GitHub or GitLab repository as the source of XML files.
Define:
API URL
Repository path
Main branch
Access token
Set up a scheduled task to fetch the latest roles automatically at regular intervals (e.g., daily).
Each run:

返回插件目录