{"id":5257,"date":"2022-10-21T18:41:47","date_gmt":"2022-10-21T15:41:47","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=5257"},"modified":"2025-11-27T11:31:44","modified_gmt":"2025-11-27T09:31:44","slug":"how-to-apply-activity-restrictions-in-moodle","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/how-to-apply-activity-restrictions-in-moodle\/","title":{"rendered":"Moodle Activity Restrictions Setup Guide"},"content":{"rendered":"\n<p>Any teacher will tell you that students must be guided to <strong>the right resources at the right time<\/strong>. Unfortunately, this is often tricky, especially online, where information is freely available.<\/p>\n\n\n\n<p>Thankfully, the <strong>developers of<\/strong> <strong>Moodle<\/strong>, one of the world&#8217;s most popular<strong> Learning Management Systems (LMS)<\/strong>, have implemented several mechanisms to limit access to course materials and help teachers stick to a well-structured curriculum.<\/p>\n\n\n\n<p><em>Let&#8217;s have a look.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Restricting-Access-to-an-Entire-Course\"><strong>Restricting Access to an Entire Course<\/strong><\/h2>\n\n\n\n<p><strong>Moodle<\/strong> is suitable for anything from a small website run by a single school teacher to large e-learning projects with students from all over the world and educators specializing in different subjects. In both scenarios, the website owner needs to know who has access to what.<\/p>\n\n\n\n<p>That&#8217;s why Moodle has <strong>user roles<\/strong>. As an administrator, you can go to <strong>Site administration<\/strong> &gt; <strong>Users<\/strong> &gt; <strong>Assign system roles <\/strong>and turn existing users into <strong>Managers<\/strong> and\/or <strong>Course creators<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><img decoding=\"async\" width=\"1024\" height=\"901\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/10-1-1024x901.png\" alt=\"Moodle Activity Restrictions Setup Guide, Restricting Access to an Entire Course\" class=\"wp-image-5259\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/10-1-1024x901.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/10-1-300x264.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/10-1-768x676.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/10-1.png 1067w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p>Both roles allow users to manage the lessons uploaded to the website. The difference is that while <strong>managers can control all courses, course creators<\/strong> can manage only the ones they participate in.<\/p>\n\n\n\n<p>Managers and course creators can enroll users as <strong>Teachers<\/strong>, <strong>Non-editing teachers<\/strong>, and <strong>Students<\/strong>, so ultimately, they are the ones who grant and revoke access to the learning materials.<\/p>\n\n\n\n<p>To enroll a new user in a course, open it (it will be available either on the homepage or in the <strong>My courses<\/strong> section) and go to the <strong>Participants <\/strong>tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><img decoding=\"async\" width=\"810\" height=\"418\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/3-2.png\" alt=\"Moodle Activity Restrictions Setup Guide, Restricting Access to an Entire Course 2\" class=\"wp-image-5260\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/3-2.png 810w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/3-2-300x155.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/3-2-768x396.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p>From the <strong>Enroll users <\/strong>popup, you need to pick the user or users you&#8217;d like to enroll and <strong>select a role for them<\/strong>.<strong> <\/strong>Only enrolled users can access the materials in the course. However, the course itself remains visible to everyone.<strong> <\/strong>If you want to hide it, you can do so via its settings.<\/p>\n\n\n\n<p>The <strong>Course visibility <\/strong>option is available during course setup. You can also find it later in the <strong>Settings<\/strong> tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><img decoding=\"async\" width=\"715\" height=\"1024\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/4-2-715x1024.png\" alt=\"Moodle Activity Restrictions Setup Guide, Restricting Access to an Entire Course 3\" class=\"wp-image-5261\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/4-2-715x1024.png 715w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/4-2-209x300.png 209w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/4-2-768x1101.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/4-2.png 829w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p>Hidden courses are still visible to<strong> admins, managers, and teachers<\/strong>. However, students can&#8217;t access them, regardless of whether or not they&#8217;re enrolled.<strong> <\/strong>By <strong>hiding courses and restricting access to them<\/strong>, you can make a group of students follow a set curriculum. Often, however, you need to be <strong>a lot more flexible than that<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Restricting-Access-to-Course-Resources-and-Activities\"><strong>Restricting Access to Course Resources and Activities<\/strong><\/h2>\n\n\n\n<p>As you probably know, Moodle courses are divided into topics. Course creators and teachers can add two types of materials to each topic \u2013 <strong>activities<\/strong> (like assignments, quizzes, surveys, etc.) or <strong>resources<\/strong> (books, files, pages, etc.).<\/p>\n\n\n\n<p>The idea is to help users acquire new knowledge through the resources and then put it into practice via the activities. Everything has to happen in a set order, and sometimes, you need to grant access to materials according to specific criteria.<\/p>\n\n\n\n<p>If you simply want to temporarily hide a specific course item from your students, you can do it in <strong>a couple of clicks<\/strong>. Log in to your account and ensure the <strong>Edit mode <\/strong>button in the top-right corner is enabled.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><img decoding=\"async\" width=\"142\" height=\"59\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/1-2.png\" alt=\"Moodle Activity Restrictions Setup Guide, Restricting Access to Course Resources and Activities\" class=\"wp-image-5262\"\/><\/figure>\n\n\n\n<p>Find the course you want to modify (it&#8217;s available on the homepage, and if you&#8217;ve set it up yourself, you should also be able to find it under the <strong>My courses<\/strong> tab).<\/p>\n\n\n\n<p>Locate the resource or item you&#8217;d like to hide, click the three-dot button next to it, and select <strong>Hide<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><img decoding=\"async\" width=\"954\" height=\"502\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/5-2.png\" alt=\"Moodle Activity Restrictions Setup Guide, Restricting Access to Course Resources and Activities 2\" class=\"wp-image-5263\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/5-2.png 954w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/5-2-300x158.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/5-2-768x404.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p>You can follow the exact same steps to unhide the item. If an activity or a resource is hidden, it becomes inaccessible to all students on the course. However, you can be even more flexible.<\/p>\n\n\n\n<p>You may want the item to be visible to users who comply with a set of specific requirements while remaining hidden to everybody else. The resources you want to make available may also <strong>depend on the student&#8217;s grades<\/strong>. And sometimes, you may want to reveal a particular resource or activity <strong>at a specific date<\/strong>.<\/p>\n\n\n\n<p><strong>All these options (and more) are available in <\/strong><a href=\"https:\/\/www.scalahosting.com\/moodle-hosting.html\"><strong>Moodle<\/strong><\/a><strong>.<\/strong><\/p>\n\n\n\n<p>Only users with permission to edit the course can restrict access to resources and activities, so you need to be assigned as a <strong>manager, course creator, or teacher<\/strong>. Log in to your account and make sure <strong>Edit mode<\/strong> is enabled.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><img decoding=\"async\" width=\"792\" height=\"1024\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/6-2-792x1024.png\" alt=\"Moodle Activity Restrictions Setup Guide, Restricting Access to Course Resources and Activities 3\" class=\"wp-image-5264\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/6-2-792x1024.png 792w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/6-2-232x300.png 232w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/6-2-768x993.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/6-2.png 913w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p>Go to the course you want to modify and locate the item you&#8217;d like to restrict. Click on its name to edit the activity or resource.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><img decoding=\"async\" width=\"900\" height=\"900\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/7-1.png\" alt=\"Moodle Activity Restrictions Setup Guide, Restricting Access to Course Resources and Activities 4\" class=\"wp-image-5265\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/7-1.png 900w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/7-1-300x300.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/7-1-150x150.png 150w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/7-1-768x768.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p>You need to open the <strong>Settings<\/strong> tab. Toward the bottom, you&#8217;ll find the <strong>Restrict access<\/strong> menu. Expand it and click <strong>Add restriction\u2026 <\/strong>to specify your criteria.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><img decoding=\"async\" width=\"733\" height=\"1024\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/8-1-733x1024.png\" alt=\"Moodle Activity Restrictions Setup Guide, Restricting Access to Course Resources and Activities 5\" class=\"wp-image-5266\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/8-1-733x1024.png 733w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/8-1-215x300.png 215w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/8-1-768x1072.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/8-1.png 901w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p><strong>You&#8217;ll see five buttons giving you a range of options:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Activity completion<\/strong> \u2013 You can make the item appear only after a student has completed a specific activity. Its visibility may also depend on whether or not the student has received a passing grade.<\/li>\n\n\n\n<li><strong>Date<\/strong> \u2013 You can make the item appear on a predetermined date.<\/li>\n\n\n\n<li><strong>Grade<\/strong> \u2013 The students will have to receive a specific grade (either for an assignment or for the entire course) before they see the item.<\/li>\n\n\n\n<li><strong>User profile<\/strong> \u2013 You can make the item visible for a group of students only (e.g., based on their nationality).<\/li>\n\n\n\n<li><strong>Restriction set<\/strong> \u2013 You can specify a set of nested criteria that need to be fulfilled if the item is to become visible (e.g., it will be available only to US-based students that have above-average course total grades).<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><img decoding=\"async\" width=\"466\" height=\"514\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/9-1.png\" alt=\"Moodle Activity Restrictions Setup Guide, Restricting Access to Course Resources and Activities 6\" class=\"wp-image-5267\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/9-1.png 466w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/10\/9-1-272x300.png 272w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p>After setting the restrictions, you need to scroll down to the bottom of the page and save the changes. A checkbox also lets you notify all course participants with access to the item about the modification.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Any teacher will tell you that students must be guided to the right resources at the right time. Unfortunately, this is often tricky, especially online, where information is freely available. Thankfully, the developers of Moodle, one of the world&#8217;s most popular Learning Management Systems (LMS), have implemented several mechanisms to limit access to course materials [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":5380,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"Moodle Activity Restrictions Setup Guide | ScalaHosting KB","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[34],"tags":[],"class_list":["post-5257","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/5257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=5257"}],"version-history":[{"count":6,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/5257\/revisions"}],"predecessor-version":[{"id":5826,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/5257\/revisions\/5826"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media\/5380"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=5257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=5257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=5257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}