--- title: "Restrict Access Based on Student ID" slug: "restrict-access-based-on-student-id-1" tags: ["Faculty", "Moodle", "Restrict Access", "Student ID", "Settings"] updated: 2025-08-13T12:20:59Z published: 2025-08-13T12:20:59Z canonical: "it.ajman.ac.ae/restrict-access-based-on-student-id-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://it.ajman.ac.ae/llms.txt > Use this file to discover all available pages before exploring further. # Restrict Access Based on Student ID 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.![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1755086577176.png) 2. Select **User profile** from the list to give access based on student ID. ![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1755086618551.png) 3. Select **ID number** and enter the student’s ID.![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1755087261824.png) 4. To add multiple students, click **Add restriction...** button again (as shown below). Otherwise, skip to step 9 in this section. ![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1755087282350.png) 5. Select **User profile** from the list to giveaccess based on student ID. ![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1724579391193.png) 6. Select **ID number** and enter the student’s ID. ![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1755087351366.png) 7. Change the matching setting to **Any. ![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1755087383521.png)** **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:![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1755087409351.png) 2. Navigate to the activity or resource you want to restrict, **click** the ellipsis **(⋮) icon**, and then click **Edit settings**. ![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1755087429426.png) 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:![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1755084313109.png) 2. Navigate to the topic or section you want to restrict, click the ellipsis **(⋮) icon**, and then click **Edit settings**.  ![](https://cdn.document360.io/7a3c00d9-daf1-4451-a1a0-1e6ab8f34fa6/Images/Documentation/image-1724579231718.png) 3. Follow the steps outlined in the first section. ## Related - [Create a Turnitin Assignment](/create-a-turnitin-assignment.md)