< All Topics
Print

Restrict Access to Category

This short video will cover how to restrict access to a category based on the roles and permissions within Moodle. The steps involved are as follows:

  1. Use a customisable report to get a list of all the courses within the category you are going to restrict access on – this report will be in a CSV format and you will need to edit it so that only the shortname and visible coulmns are showing. The shortname is the short course name for the module and visible will show or hide a module in Moodle.
  2. Hide the category in Moodle that you want to restrict. This will hide all sub categories and courses by default.
  3. Take the CSV file – generated from Step 1 above – and upload this to the site with the following settings :
    1. You want to update existing courses only
    2. You want to update with the CSV data
  4. Once this is run, the categories will remain hidden but the courses are viewable again for the students to enter or search for within the site.
  5. Next go to the Cateogry and turn editing on and edit the settings and go down to Permissions
  6. Scroll down until you see the “See hidden category” area and add the restriction here on the right hand side re who is prohibited from seeing this category in their drop down list.
  7. Scroll to the bottom of the page and go back to the category list and choose the “Assign Roles” option.
  8. In here you need to add your admin team to the respective groups – ie Sub-AdminNM or Sub-AdminKBS
  9. Once this is complete you are done and you can test it with the users referenced in step 8.
Restricting Access to Categories in Moodle

Previous Recover a Deleted Activity or Resource
Next Switch to Student View
Table of Contents