General plugins (Local): Login as

Maintained by Picture of Itamar TzadokItamar Tzadok
A local plugin that allows admin to add a list of loginas action links to the settings block.
230 sites
17 fans
Current versions available: 5

The Login As local plugin allows admin to add a list of loginas action links to the settings block by setting a comma delimited list of user ids.

The plugin offers a convenient way to switch to a designated user with particular roles for testing site settings or troubleshooting. It can also be used for switching between personae where site managers wear more than one hat.


Screenshot #0
Screenshot #1
Screenshot #2


Picture of Itamar Tzadok
Itamar Tzadok (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Bob Puffer
    Sat, Jul 27, 2013, 1:21 AM
    I find this to be working fine with 2.5.1
  • Picture of John S
    Thu, Sep 12, 2013, 2:05 AM
    Does this plugin have anything to do with this role capability?
  • Picture of Fernando Oliveira
    Thu, Oct 17, 2013, 3:19 AM
    Thanks for this great little plug-in, Itamar! Works well overall it but it seems to ignore the Force Group Mode. In other words, a teacher in Group A can log in as students in Group B even thought the course is set to keep these groups/users separate. Any ideas on how work around this?
  • Picture of Matthew Koelling
    Tue, Jul 1, 2014, 7:52 AM
    Does this work in Moodle 2.7?
  • Picture of Mark DeLonge
    Tue, Apr 28, 2015, 9:35 PM
    Will this be updated for 2.8?
  • Picture of Itamar Tzadok
    Tue, Apr 28, 2015, 10:15 PM
    Yes. smile
  • Picture of Bob Puffer
    Mon, Jun 8, 2015, 1:58 AM
    One of the greater plugin contributions, thanks
  • JF Dragon
    Thu, Sep 3, 2015, 9:18 PM
    Hi Itamar. Nice plugin. I have two questions:
    1. Could it be possible to add to the «Course users» feature an option to search by role (ex.: within the students only)?
    2. Did it could be possible also to add a filter that let search within the users from a specific group or cohort within a course?

    If so, that features is it hard to develop?
  • Picture of Itamar Tzadok
    Tue, Sep 8, 2015, 10:41 PM
    Thanks. Both possible and shouldn't be too difficult. As usual, it's mainly a matter of time and funding. smile
  • Picture of Antony Goodman
    Sat, Feb 4, 2017, 2:23 AM
    Does this work in Moodle 3.2?
  • Picture of Meindert Jorna
    Sat, May 13, 2017, 5:36 AM
    See a comment from Febr 4th with question if this wooks in Moodle 3.2 - Tried the plugin, installation went fine, but there is no settings menu nor a "login as" menu item. At least, I cannot find any "login as" menu item anywhere. Did anyone try this with Moodle 3.2?
  • Picture of Meindert Jorna
    Sat, May 13, 2017, 6:35 AM
    Aha, fixed. Yes it is working with Moodle 3.2 - I am using the Academi theme and there was no settings menu nor a "login as" menu item. Changed to "Clean" theme and the settings menu and the "login as" menu shows up. Switched back to Academi. Tried a lot of settings but finally found the solution by adding an extra "administration" block and in this block the "login as" menu is showing up! It works! This will help me a lot as I am using the database activity a lot in my courses and want to log in as being a certain student in order to add a database item for this student after which this student can edit the database entry. Thanks.
  • Picture of Dr. Nellie Deutsch
    Tue, Jun 6, 2017, 10:42 PM
    Does it work on Moodle 3.3?
  • Picture of Glenn Pillsbury
    Sat, Aug 26, 2017, 6:19 AM
    @Nellie - Yes, I have it working on 3.3.1. The link appears in my Administration block as expected and the plugin works as advertised. However, there is a noticeable visual/cosmetic glitch present when using the Essential theme, but it doesn't really impede the use of the tool.
  • Picture of Kimber Warden
    Tue, Aug 13, 2019, 1:31 AM
    This has been one of my favorite plug-ins for years. However, I've just upgraded to Moodle 3.7, and I can't find the link to it in Boost. It only appears in the Classic theme. Since Boost is the only modern theme that is packaged with Moodle, and since so many themes use it as a base, will this plug-in be made compatible with Boost?
1 2
Please login to post comments