Capabilities/moodle/user:loginas
From MoodleDocs
allows a user to log in as other users (login as button in 1.6)
Note: You are currently viewing documentation for Moodle 3.0. Up-to-date documentation for the latest stable version of Moodle may be available here: Capabilities/moodle/user:loginas.
allows a user to log in as other users (login as button in 1.6)