VisuCode

For Moodle admins · one-off, about 20 minutes

Set up VisuDesk
Prepare Moodle.

For teachers to use VisuDesk, your Moodle needs three plugins and a web service. You decide who may use VisuDesk – teachers then get their key themselves.

Overview

VisuDesk is a Mac app. It talks directly to your Moodle through a web service – with exactly the permissions each teacher also has in the Moodle interface. There is no VisuCode server and no cloud.

Setup consists of four required steps and one optional step:

  1. Install the plugins: MCP web service, VisuDesk plugin and Quiz Builder.
  2. Enable web services and the MCP protocol.
  3. Create the “VisuDesk” service and add its functions.
  4. Authorise teachers: a system role that every teacher gets automatically; with it they create their key themselves.
  5. Optional: a separate “VisuDesk Admin” service for the admin panel (create, archive and delete courses).
RequirementsMoodle 5.0 or later and an account with administrator rights. Tested with Moodle 5.2. Menu names may differ slightly depending on version and language pack – if in doubt, use the search at the top of Site administration.

1Install the plugins

VisuDesk needs three plugins:

  • MCP web service (webservice_mcp) by onbirdev – the connection between VisuDesk and Moodle. Plugin on GitHub
  • VisuDesk plugin (local_visudesk, formerly Course Files) – lets the web service create files, folders and sections, back up and request courses, set self enrolment, and lets teachers connect VisuDesk with one click. Download version 1.0.0 (ZIP)
  • Still have Course Files (local_coursefiles)? Install the VisuDesk plugin next to it – it takes over the settings. Then add the local_visudesk_… functions to the service; VisuDesk 0.40 or later uses them by itself. Uninstall Course Files later.
  • Quiz Builder (local_quizbuilder) version 0.4.0 or later – creates quizzes from quiz files, updates them and fetches them back with all question types. Download version 0.4.1 (ZIP)
  • Optional: Model solution (assignfeedback_modelsolution) – the solution for an assignment. Each student sees it only after their own due date (extensions included) and only after submitting. Without the plugin VisuDesk adds the solution as a material with a date. Download version 1.0.1 (ZIP)

So that a submission is fixed only when students click “Submit assignment” – until then they can upload parts and add to them –, set Require students to click the submit button to Yes under Site administration → Plugins → Activity modules → Assignment → Settings. VisuDesk creates assignments this way anyway.

  1. Open Site administration → Plugins → Install plugins.
  2. Upload the ZIP file and click Install plugin from the ZIP file, then Continue.
  3. Confirm the plugin check with Upgrade Moodle database now.
No write access on the server?If Moodle reports that the directory is not writable, your server admin unpacks the folder from the ZIP into local/ (VisuDesk plugin) or webservice/ (MCP). Then simply open Site administration → Notifications.

2Enable web services

  1. Site administration → General → Advanced features: tick Enable web services and save.
  2. Site administration → Server → Web services → Manage protocols: enable the MCP protocol (eye icon).

VisuDesk doesn’t need any other protocol.

3Create the “VisuDesk” service

The VisuDesk plugin comes with its own service, but you can’t add further functions to it. That’s why you create a separate service.

  1. Site administration → Server → Web services → External services → Add.
  2. Name VisuDesk, short name visudesk.
  3. Tick Enabled, Can upload files and Can download files; leave Authorised users only off. As Required capability choose webservice/mcp:use. Without “download”, “⬇ Submissions” and “⬇ Back up course” won’t work.
  4. Add service, then in the list click Functions → Add functions for the service. Add these functions:
FunctionWhat VisuDesk needs it for
Basics
core_webservice_get_site_infocheck the key, show the name
core_enrol_get_users_coursesthe teacher’s course list
core_course_get_contentsshow a course with sections and resources
core_course_get_categoriescourse category of a course, for the right grading scale (VisuDesk 0.35.0 or later)
Resources (VisuDesk plugin)
local_visudesk_create_resourceupload a file as a resource
local_visudesk_create_folderupload a folder with files
local_visudesk_update_filesreplace with a new version
local_visudesk_set_visibilityshow / hide
local_visudesk_set_availabilityschedule when a resource becomes visible
local_visudesk_set_course_visibilityshow or hide the whole course
local_visudesk_create_sectionadd a section
local_visudesk_update_sectionrename, show or hide a section
local_visudesk_move_sectionmove a section
local_visudesk_backup_courseMoodle backup (.mbz) without personal data
Editing
core_courseformat_update_coursemove resources and put them in the recycle bin
core_update_inplace_editablerename resources
Submissions
mod_assign_get_assignmentsread an assignment for editing: title, description, files, due date
mod_assign_get_submissionssubmissions of an assignment
mod_assign_get_submission_statuslook at one person’s submission to grade it
mod_assign_list_participantsnames for the submission folders
mod_assign_get_user_flagssubmissions overview: lock and extended due date per person (VisuDesk 0.31.0 or later)
mod_assign_save_user_extensionsextend the due date for individual people
mod_assign_revert_submissions_to_draftrevert a submission to draft
mod_assign_lock_submissionslock submissions of a person
mod_assign_unlock_submissionsunlock
core_message_send_instant_messagesreminder about missing submissions as a Moodle message from the teacher
local_visudesk_set_feedback_filesreturn corrected files as feedback
local_visudesk_create_assigncreate an assignment
local_visudesk_set_assign_duedatechange the due date of an assignment
local_visudesk_update_assignedit an assignment: title, description, files, due date
local_visudesk_get_assign_gradingread the grading of an assignment: scale, grades, comments
local_visudesk_grade_submissionsave grade and comment
local_visudesk_release_gradesrelease grades, only then students see them
Solution for an assignment (plugin Model solution, optional)
assignfeedback_modelsolution_set_solutionput the solution on the assignment, released after the due date, only with a submission
assignfeedback_modelsolution_get_solutionread an assignment’s solution
Course requests
local_visudesk_request_courserequest a new course
local_visudesk_get_course_requestsshow own open requests (admins: all)
Self enrolment
local_visudesk_get_self_enrolmentshow self enrolment and its key
local_visudesk_set_self_enrolmentturn self enrolment on or off, set the key
Lesson planning (VisuDesk plugin 1.1.0 or later, VisuDesk 0.47.0 or later)
local_visudesk_get_planread the teacher’s own planning (content, sequence, progress)
local_visudesk_save_plan_entrysave one lesson; Mac and iPad are merged field by field
local_visudesk_import_planupload the existing planning once, without overwriting anything
Quiz as a test (plugin local_quizbuilder)
local_quizbuilder_get_rulesrules for questions (version)
local_quizbuilder_import_questionsquestions into the course question bank
local_quizbuilder_create_quizcreate a quiz in the section (hidden)
local_quizbuilder_add_quiz_questionsadd the questions to the quiz
local_quizbuilder_replace_quiz_questionsupdate a quiz
local_quizbuilder_export_quiz_questionsfetch a quiz back with all question types
Grading scale “Noten 1–6”For grades with tendencies, create a standard scale once: Site administration → Grades → Scales → Add a new scale, name Noten 1–6 (exactly like this, with an en dash), tick Standard scale, values 6, 5-, 5, 5+, 4-, 4, 4+, 3-, 3, 3+, 2-, 2, 2+, 1-, 1, 1+. Points 15–0 need no scale.
Recycle binWhen a teacher deletes a resource, it goes to the course recycle bin. For this, the course recycle bin should be enabled under Site administration → Plugins → Admin tools → Recycle bin.

4Authorise teachers

Every teacher who has the Teacher role in a course may use VisuDesk and creates their key themselves – you don’t hand out keys or add anyone one by one.

a) A role for the whole site

Moodle checks capabilities such as “create a key” for the whole site, so the course role Teacher cannot grant them – a separate system role does.

  1. Site administration → Users → Permissions → Define roles → Add a new role, e.g. Web service user, context System.
  2. Allow these capabilities: moodle/webservice:createtoken and webservice/mcp:use, for course requests also moodle/course:request.

b) Give the role to all teachers automatically

Site administration → Plugins → Local plugins → VisuDesk: under Site role for teachers choose Web service user and save. Everybody who teaches in a course gets the role at once; new teachers automatically. Admins don’t need it.

How teachers get their keyOn first launch they click Connect to Moodle in VisuDesk, sign in to Moodle as usual (single sign-on too) and confirm with Connect to VisuDesk. Moodle creates the key and hands it straight to VisuDesk on their Mac; VisuDesk never sees the password. Alternatively they copy it under profile picture → Preferences → Security keys for the “VisuDesk” service. Site admins can’t use the first way, Moodle doesn’t allow it for them.

5Optional: admin panel

With a separate admin key, VisuDesk shows an Admin button: browse categories, create courses (also as a copy of a template, without participants), enrol teachers, list a teacher’s courses, archive and delete courses – several at once, too.

  1. Create a second service: name VisuDesk Admin, short name visudesk_admin, same ticks as above – but here tick Authorised users only so that only you can use it.
  2. Add all 26 functions of “VisuDesk” plus these 11:
FunctionUsed for
core_course_get_categoriesshow categories
core_course_get_courses_by_fieldcourses in a category
core_course_create_coursescreate a new course
core_course_duplicate_coursecopy a course from a template
core_user_search_identitysearch for teachers
enrol_manual_enrol_usersenrol as teacher
core_enrol_get_enrolled_usersteachers of a course
core_course_update_coursesarchive (move and hide); correct courses created automatically
core_course_delete_coursesdelete courses
local_visudesk_approve_course_requestapprove a course request (name and category can be changed)
local_visudesk_reject_course_requestreject a course request with a reason
local_visudesk_get_autoapproved_courseslist courses created automatically (from 0.14.0)
local_visudesk_check_autoapproved_coursemark a course created automatically as checked (from 0.14.0)
  1. Add only yourself as an authorised user.
  2. Create a key under Server → Web services → Manage tokens → Create token: user yourself, service VisuDesk Admin, with an expiry date (e.g. the end of the school year).
  3. For “archive”, create a category named Archiv once, ideally hidden: Site administration → Courses → Manage courses and categories.

Enable course requests

Teachers can request a course in VisuDesk following your naming scheme (e.g. 2026 11FI2 SebH Objektorientierte Programmierung, short name 2026 11FI2 SebH OOP). You approve the request in the admin panel – with a corrected name and the right category – or reject it with a reason. Moodle creates the course, enrols the teacher and notifies them.

  1. Site administration → Courses → Course request: tick Enable course requests; as the category for requested courses choose e.g. a hidden drafts category. Under Course request notification you can have yourself notified.
  2. In the Web service user role (step 4) also allow moodle/course:request – no standard role has this capability.

Users who can create courses in Moodle themselves (e.g. admins) cannot request courses.

Approve course requests automatically

If a request follows the naming scheme and the class already has a course, Moodle can create it at once: hidden, in the category of the newest course of that class (archive categories left out), with the teacher enrolled. Everything else stays a normal request. You check afterwards in the admin panel under Requests → Created automatically – still to check: correct name, short name and category, then Checked.

  1. Site administration → Plugins → Local plugins → VisuDesk: tick Approve course requests automatically.
  2. Under Notify about created courses enter the user name of the person who checks. Only they get a message with a link to the course; empty means the main administrator.
  3. Add the two functions local_visudesk_get_autoapproved_courses and local_visudesk_check_autoapproved_course to the VisuDesk Admin service.

For this the plugin stores only the course and the times “created” and “checked”, no personal data. VisuDesk shows who requested the course from the course’s teachers.

Separate services on purposeTeachers never get the permissions to create or delete courses. An admin key should only be stored on your own Mac.

6Give VisuDesk to teachers

  • Download: visucode.de/visudesk – notarised by Apple, for Macs with Apple silicon. You can also distribute the DMG through your device management.
  • On first launch VisuDesk asks for the Moodle address and the key, then Ludwig gives a short tour of the app.
  • The app is available in English, German and Portuguese and follows the Mac’s language; it can be changed in the gear menu.
  • New resources are always hidden at first. Recommendation: try it with a test course first.
  • Updates: the gear menu has “Check for updates”.

Privacy

  • No cloud, no VisuCode accountVisuDesk runs only on the Mac and only talks to your Moodle. The only exception: “Check for updates” asks visucode.de for the latest version number – only on click or, if enabled, once a day.
  • Same permissions as in MoodleMoodle checks every action itself. VisuDesk can’t do anything the teacher isn’t also allowed to do in the interface.
  • Key in the keychainThe key is stored in the macOS keychain, not in a file. It can be revoked in Moodle at any time (Manage tokens).
  • Submissions on the Mac“⬇ Submissions” saves students’ files in the folder Downloads/VisuDesk-Abgaben. Your rules for personal data on work devices apply there – please delete them once grading is complete.
  • Backups without personal data“⬇ Back up course” downloads files and a Moodle backup without participants, submissions, grades and logs.
  • Planning stays with the teacherTopic, plan and progress per lesson (“My week”) are saved in a file on the Mac or in a folder the teacher chooses, for example in Nextcloud. Nothing of it goes to Moodle or WebUntis; the service needs no function for it.

Troubleshooting

Message in VisuDeskCause and fix
“Moodle rejects the key”Key copied incorrectly, expired or revoked – get a new one under Security keys.
“The function … is not enabled in the service”The function named is missing from the VisuDesk (or VisuDesk Admin) service – add it, see step 3.
“Moodle won’t release the file”The service is missing Can download files.
No key under Security keysThe teacher doesn’t have the Web service user role yet – are they not a teacher in any course? Give the role under “Assign system roles”.
“Admin” button missingA teacher key is entered. For the admin panel, enter the key of the VisuDesk Admin service (gear → Moodle key).
“There is no Archiv category”Create the “Archiv” category, see step 5.
Uploading large files failsThe limit is set by Moodle and the server (post_max_size, maximum file size). Large videos are better linked.

Questions and bug reports are welcome via the plugin page (German) or the contact address below.