Capabilities/mod/coursework:viewanonymous
From MoodleDocs
Roles with this capability are able to view the names of all students.
Warning: students are de-anonymised throughout all phases for users with this permission
Note: You are currently viewing documentation for Moodle 2.6. Up-to-date documentation for the latest stable version of Moodle may be available here: Capabilities/mod/coursework:viewanonymous.