Moodle Help & Support
This refers to Moodle 3.11 from August 2022 onwards
How to restrict access to a resource or activity or section in Moodle
It is possible to restrict access to resources or activities or to sections in a variety of ways.
- from a specific start date
- to a specific end date
- only visible if students have achieved a required grade in a previous activity
- visibility is based on the value in a field in the user profile (for example course code)
- restrict to a particular group of students

To restrict access
- Click on the 'Turn editing on' button on the top right of the Moodle page
- Either c
- Create a new activity/ resource OR
- Click on Edit on an existing activity and select 'Edit settings' from the dropdown
- On the 'Settings' page for an activity or resource, click to open the "Restrict access" section
- Click on the 'Add restriction...' button
- Select from
- 'Activity completion' (only available if activity completion is set up on your module) - allows you to limit visibility only to those students who have completed (or not completed) another previous activity
- 'Date' - a To or From date and time can be set from when or until which the item is visible to students
- 'Grade' - a way to limit visibility only to those who have achieved a specified grade or range of grades in a previous activity such as a quiz, or in the module total
- 'Group' (only available if groups are enabled in your module) - make the item visible to a specified group of students (you need to create the groups first)
- 'User profile' - limit visibility to those with a particular value in a user profile fiel;d (e.g., a Course Code, or Country)
- 'Restriction set' - Add a set of nested restrictions to apply complex logic.
- Click on the required restriction button and you will return to the "Restrict access" section where further choices can be made.
- Save the changes
- Click the 'Turn editing off' when you have finished editing
To remove a restriction
- Click on the 'Turn editing on' button on the top right of the Moodle page
- Either c
- Create a new activity/ resource OR
- Click on Edit on an existing activity and select 'Edit settings' from the dropdown
- On the 'Settings' page for an activity or resource, click to open the "Restrict access" section
- At the end of the line relating to the restriction you wish to remove, click the X

To edit a restriction
Delete the restriction and recreate it as described above.
For more information see: How to set up groups and groupings