Mr. Moodle: Can I Prevent Teachers From Viewing Or Editing Their Own Gradebook?

Ask Mr. Moodle!

Dear Mr Moodle,

I’m an admin for our Moodle 3.2 site. I have been asked to restrict gradebook settings access to teachers but don’t know how. I have been instructed that only admin and managers have access to gradebook settings.

Please help!

A big thank you!!


Post Pages - Post Inline - WIRIS

Dear Melissa,

As you have experienced, teachers have complete access to the Gradebook for the courses they teach. Admins can, however, go into the code and edit these permissions, In Moodle development lingo, these are called “capabilities.”

To manage the details of what any kind of user can do or view, you need to look into their specific capabilities. Take a look at the index of capabilities for Moodle 3.2 here. (Bear in mind it’s three pages long.) So if you are looking to either prevent teachers from editing the gradebook, or barring access to it completely, you might need to review capabilities associated with grades. Below I include some of the capabilities that are enabled for teachers by default, but I recommend you look at the index for yourself.

  • moodle/grade:edit to edit grades and lock individual grades
  • mod/assign:grade to see and comment
  • mod/assign:managegrades to review and release grades
  • mod/assign:releasegrades to release grades
  • mod/assign:reviewgrades to review grades
  • moodle/course:managegrades to determine student and assignment availability in the gradebook
  • moodle/grade:hide to hide or show individual grades
  • moodle/grade:manage to create, edit, lock, hide, and delete items in the gradebook
  • moodle/grade:override
  • moodle/grade:unlock
  • moodle/user:viewusergrades
  • moodle/grade:view
  • moodle/grade:viewall
  • moodle/grade:viewhidden

To manage the capabilities of the roles, go to the editing role page available at Administration > Site administration > Users > Permissions > Define roles.

More on Managing Roles in Moodle 3.2 here.

Keep in mind that any change you make will apply to every user with that role. Moodle lets you reset any changes to the default, but my personal recommendation is to keep the default roles as they are and instead create custom roles with the specific capabilities that your site needs and switch teachers to the new role.

Reply to Mr. Moodle in the comments, or ask him something new here.

eThink LogoThis Moodle Practice related post is made possible byeThink Education, a Certified Moodle Partner that provides a fully-managed Moodle experience including implementation, integration, cloud-hosting, and management services. To learn more about eThink, click here.


Previous articleMoodle User's Association choose "Expanded Question Bank Management/Categorization" for Jan-June 2017 project cycle @moodleassoc
Next articleDiscover All You Can Create With Moodle In Ian Wild’s ‘Moodle 3.x Developer’s Guide’


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.