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:
- 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.
- Hide the category in Moodle that you want to restrict. This will hide all sub categories and courses by default.
- Take the CSV file – generated from Step 1 above – and upload this to the site with the following settings :
- You want to update existing courses only
- You want to update with the CSV data
- 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.
- Next go to the Cateogry and turn editing on and edit the settings and go down to Permissions
- 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.
- Scroll to the bottom of the page and go back to the category list and choose the “Assign Roles” option.
- In here you need to add your admin team to the respective groups – ie Sub-AdminNM or Sub-AdminKBS
- Once this is complete you are done and you can test it with the users referenced in step 8.