Moodle 2.x. Hide users in the participant list of courses

Home / Factorsim @en / Moodle 2.x. Hide users in the participant list of courses

This post is devoted to all those who have upgraded to the last versions of Moodle 2 (2.4, 2.5 and 2.6) from Moodle 1.9 during the last months.

In Moodle 1.9, through the participant list of a course, users who were enrolled manually were hidden from users with lower roles. The manual enrollment of these users is exactly the same as the others, but for having to click on the eye icon and then adding a new user.

Asignación de rol en un curso (Moodle 1.9)

But this option is no longer available in the new versions of Moodle.

How can users that do not appear in the participant list be enrolled?

Users added as global users do not appear in the lists, but this option cannot always be used, because then only those users with a course creator role or higher could access to all the courses.

With the new versions of Moodle, we can add users that will only have access to this course (and other courses enrolled), and will not appear in the participant list.

Follow the next steps in order to do enrol users:

  • 1. Go to the course you want to enrol the hidden user.
  • 2. Go to the side block Settings > Course administration > Users > Other users

Other users

  • 3. Then, it will appear a list with the hidden users that have access to the course, i.e., all global roles that have been added by following the steps we are describing.
  • 4. Click on the button “Assign roles”.
  • 5. It will appear a window where we can search users that take part in the campus and have not been enrolled or have access to the course. In this window, there is a field to search users.
  • 6. Under each user, there are the roles with which they can be enrolled. You should click on the role you want to enrol the user.

Asignar otros usuarios

  • 7. There is no enrollment button as in the manual enrollment, you should only close the window after clicking on the role you want to assign to the user.


In order to add a role in the role assignment, this role should have the capability of being assigned in the course context (role definition page) allowed. Moreover, in the role definition page, the capability view courses without participation should be allowed (moodle/course:view) as well.

Leave a Comment


× 3 = 3


Puedes enviarnos un mensaje si tienes quejas o quieres felicitarnos, o para contarnos algo, te responderemos :D