General plugins (Local): Login as

local_loginas
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.
277 sites
71 downloads
7 fans
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.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

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, 6 Jun 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=''
    WHERE mdl_config.name='loginas_loginasusers'
  • Picture of Itamar Tzadok
    Thu, 6 Jun 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, 4 Jul 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, 17 Jul 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, 17 Jul 2013, 4:56 AM
    It works on 2.5. smile
  • Matt Rice
    Wed, 17 Jul 2013, 8:46 PM
    Excellent!
  • Picture of Bob Puffer
    Sat, 27 Jul 2013, 1:21 AM
    I find this to be working fine with 2.5.1
  • Picture of John S
    Thu, 12 Sep 2013, 2:05 AM
    Does this plugin have anything to do with this role capability?

    http://docs.moodle.org/25/en/Capabilities/moodle/user:loginas
  • Picture of Fernando Oliveira
    Thu, 17 Oct 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, 1 Jul 2014, 7:52 AM
    Does this work in Moodle 2.7?
  • Picture of Mark DeLonge
    Tue, 28 Apr 2015, 9:35 PM
    Will this be updated for 2.8?
  • Picture of Itamar Tzadok
    Tue, 28 Apr 2015, 10:15 PM
    Yes. smile
  • Picture of Bob Puffer
    Mon, 8 Jun 2015, 1:58 AM
    One of the greater plugin contributions, thanks
  • JF Dragon
    Thu, 3 Sep 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, 8 Sep 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