Your Moodle version

General plugins (Local): Login as

Maintained by Picture of Itamar Tzadok Itamar Tzadok
A local plugin that allows admin to add a list of loginas action links to the settings block.
Moodle 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6

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 Alan Hare
    Thu, Jun 6, 2013, 12:22 AM
    I like the plugin.. works great with version 2.4.4 (20130513)

    The only problem I detected was there is no Error Trapping / Exception Handling - So when you accidently put usernames into the "Login as users by id" which produces the error, the error displays "Error reading from database" and locks everyone out of site.

    Work around is to Edit: mdl_config and look for loginas_loginasusers, edit value.

    // MS SQL query
    UPDATE mdl_config
    SET value=''
  • Picture of Itamar Tzadok
    Thu, Jun 6, 2013, 12:28 AM
    Thanks for the note Alan. I will look into fixing that and releasing an update. smile
  • Picture of Lawrence Ng
    Thu, Jul 4, 2013, 5:48 AM
    We installed it on 2.2.4+ (build 20120719) okay but the link is nowhere to be found sad
  • Matt Rice
    Wed, Jul 17, 2013, 4:18 AM
    This looks like a great time saver! Is there an expected time frame for when it will be 2.5 compatible?
  • Picture of Itamar Tzadok
    Wed, Jul 17, 2013, 4:56 AM
    It works on 2.5. smile
  • Matt Rice
    Wed, Jul 17, 2013, 8:46 PM
  • 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
1 2
Please login to post comments