Access restrictions can be used in Moodle to prevent students from navigating to specific resources or activities based on specific conditions. This is valuable for reducing cognitive overload for students, creating differentiated assessments, and much more.
This article provides several examples for working with access restrictions.
The access restriction settings are found in the Settings page of any activity or resource in Moodle. There are two ways to get into the Settings page.
To access Restrict access settings for an activity:
If no restrictions have been set, the Restrict access field will be set to None with an Add restriction button available.
In order to add any restriction, click the Add restriction button.
Access can be restricted by the following conditions:
Multiple restrictions can be applied at once, and there is also an option to apply nested conditions for advanced restrictions.
Activities may need to have access restricted based on timing, which is like a Quiz's open and close time. This example will set an access restriction so that students can only access the activity between September 13th, 2025 at 8:00AM, and September 15th, 2025 at 11:55PM.
To add a Date restriction:
An option will appear in the Access restrictions tool, with two statements:
To change the date and time to Sept. 13th, 2025 at 08:00, or 8:00AM:
After these changes are made, the first date restriction will display Date from 13 September 2025 08:00.
To make another Date restriction so that the activity closes after September 15th, 2025 at 11:55PM:
The activity is now restricted from the 13th of September 2025 at 8:00AM until the 15th of September 2025 at 11:55PM.
The conditions should look like this:
Assignments may need to be restricted based on a Group role assigned to a student. For example, an assignment or group of assignments could be assigned to a given group named Group Alpha.
For specific guidance on creating groups and adding students to them, please review the "Creating and Adding Users to Moodle Groups" article.
To add a Group restriction:
An option will appear in the Access restrictions tool, with two statements:
To set the appropriate group:
External tools may need to be restricted based on completion of a prior assignment. For instance, maybe an assignment should only be visible after a tutorial is completed.
In order for a restriction to be added this way, completion conditions must be enabled on a given activity. See the "Setting Activity Completion on a Moodle Activity" article for instructions.
To add the restriction:
An option will appear in the Access restrictions tool, with two statements:
To set the activity completion restriction:
The activity in this example is restricted based on completing an activity titled External Tool Tutorial before accessing the given activity, which looks like this:
Restriction in this way is also especially useful for Gamification. See the "Overview of the Moodle Gamification Plugin" article for more details.
Some activities may need to be restricted so that they can only or cannot be accessed using the Moodle Mobile app. More details on the app can be found in the "Overview of the Moodle NC State App" article.
To add a mobile app restriction to an activity:
An option will appear in the Access restrictions tool, with two statements:
To set the mobile app restriction, set the Mobile app field to one of the two settings:
This restriction can be useful for ensuring that students don't attempt to access an activity unsupported by the mobile app, such as an external tool or advanced activity type.
Some activities may need to be restricted so that they can only or cannot be accessed by specific users.
To add a User profile restriction:
An option will appear in the Access restrictions tool, with two statements:
Access restrictions used as a means of providing accommodations will need to be hidden so that they do not identify students receiving accommodations. See the "Hiding a Restricted Activity" section of this article for further instructions.
While the User Profile access restriction is useful in targeted cases, the User Override setting offers a simple way to customize Moodle activity setting for specific students or groups. See the "Overriding Moodle Activity Settings for Specific Students or Groups" article for more details.
When restrictions are added, they will restrict access to an activity, but the name of the item will be visible on the course page along with the restriction condition unless they are hidden. It's possible to hide the restricted activity from students who do not meet the restriction condition. To do so, select the open eye icon next to the restriction. This will change to a crossed-out eye, indicating that the assignment is fully hidden unless the student meets the condition for access.
The activity in this example is restricted and hidden if a student is not part of a Group Alpha:
Setting Activity Completion on a Moodle Activity (DELTA Knowledge Base)
Overriding Moodle Activity Settings for Specific Students or Groups (DELTA Knowledge Base)
Restrict access settings (MoodleDocs)
Activity completion (MoodleDocs)
For additional assistance, please contact the LearnTech Help Desk at learntech@ncsu.edu or (919) 513-7094, or via the Get Help form on the DELTA Knowledge Base.