Moodle
  1. Moodle
  2. MDL-14805

Add logging of activity when a user is logged in as another user

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9, 2.5.2
    • Fix Version/s: BACKEND
    • Component/s: Administration, Logging
    • Labels:
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_25_STABLE
    • Epic Link:
    • Rank:
      18205

      Description

      When a user with the moodle/user:loginas capability logs in as another user and performs any activity, this activity is not logged. It would be nice if it was logged and clearly denoted in the logs as "X user logged in as Y user".

      This would probably mean rewriting the add_to_log function in some way - currently, it prevents logging if the userids are not the same.

        Issue Links

          Activity

          Matt Campbell created issue -
          Matt Campbell made changes -
          Field Original Value New Value
          Link This issue has a non-specific relationship to MDL-13854 [ MDL-13854 ]
          Eloy Lafuente (stronk7) made changes -
          Assignee Eloy Lafuente (stronk7) [ stronk7 ] Martin Dougiamas [ dougiamas ]
          Teresa Gibbison made changes -
          Attachment Loginas reporting.jpg [ 16826 ]
          Martin Dougiamas made changes -
          Workflow jira [ 26410 ] MDL Workflow [ 43383 ]
          Martin Dougiamas made changes -
          Workflow MDL Workflow [ 43383 ] MDL Full Workflow [ 71781 ]
          Petr Škoda made changes -
          Parent MDL-28443 [ 46008 ]
          Issue Type New Feature [ 2 ] Sub-task [ 5 ]
          Martin Dougiamas made changes -
          Assignee Martin Dougiamas [ dougiamas ] moodle.com [ moodle.com ]
          Aparup Banerjee made changes -
          Component/s Logging [ 12433 ]
          Michael de Raadt made changes -
          Link This issue has been marked as being related by MDL-36542 [ MDL-36542 ]
          Michael de Raadt made changes -
          Parent MDL-28443 [ 46008 ]
          Rank (Obsolete) 168150000000
          Issue Type Sub-task [ 5 ] Improvement [ 4 ]
          Michael de Raadt made changes -
          Epic Link MDL-28443 [ 46008 ]
          Michael de Raadt made changes -
          Fix Version/s BACKEND [ 12582 ]
          Labels triaged
          Michael de Raadt made changes -
          Link This issue is duplicated by MDL-42205 [ MDL-42205 ]
          Michael de Raadt made changes -
          Affects Version/s 2.5.2 [ 12664 ]

            People

            • Votes:
              9 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated: