Skip to content
Ajman University

Restrict Access Based on Student ID

By Khadija AhmedPublished 5 Jul 2021Updated 13 Aug 20252 min read

Restrict Access is a feature that allows specific enrolled students to view and access an activity or resource (such as an online exam) in a Moodle course.

Restricting access to an activity or resource while uploading or creating it

While uploading the activity or resource, go to the Restrict access section in the options and follow these steps:

  1. Click the Add restriction... button.Screenshot: Restrict Access Based on Student ID, step 1
  2. Select User profile from the list to give access based on student ID. Screenshot: Restrict Access Based on Student ID, step 2
  3. Select ID number and enter the student’s ID.Screenshot: Restrict Access Based on Student ID, step 3
  4. To add multiple students, click Add restriction... button again (as shown below). Otherwise, skip to step 9 in this section. Screenshot: Restrict Access Based on Student ID, step 4
  5. Select User profile from the list to giveaccess based on student ID. Screenshot: Restrict Access Based on Student ID, step 5
  6. Select ID number and enter the student’s ID. Screenshot: Restrict Access Based on Student ID, step 6
  7. Change the matching setting to Any.

    Screenshot: Restrict Access Based on Student ID, step 7

    What is the difference between “All” and “Any” in the matching option?

    • All: The student must have all the listed IDs to view this part. Choosing this option will effectively restrict access for all students, since no student has more than one ID.
    • Any: The student must have at least one of the listed IDs to view this part.
  8. Repeat these steps until all students are added.
  9. Once all IDs have been added, click the Save and return to course button. 

Restricting access to existing activity/resource 

To restrict access to an activity or resource after it has been added to the Moodle course, follow these steps:

  1. Inside the course, enable editing by clicking the "Edit mode" toggle switch, as illustrated below:Screenshot: Restrict Access Based on Student ID, step 8
  2. Navigate to the activity or resource you want to restrict, click the ellipsis (⋮) icon, and then click Edit settings. Screenshot: Restrict Access Based on Student ID, step 9
  3. Follow the steps outlined in the previous section. 

Restricting access to a section/topic

To restrict access to a section or topic for a specific students in a Moodle course, follow these steps:

  1. Inside the course, enable editing by clicking the "Edit mode" toggle switch, as illustrated below:Screenshot: Restrict Access Based on Student ID, step 10
  2. Navigate to the topic or section you want to restrict, click the ellipsis (⋮) icon, and then click Edit settings.  Screenshot: Restrict Access Based on Student ID, step 11
  3. Follow the steps outlined in the first section.

Was this article helpful?

Original source: https://it.ajman.ac.ae/docs/restrict-access-based-on-student-id-1