Feature #78432

Add log message for "Switch User action"

Added by Stefan Busemann about 3 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Logging
Target version:
-
Start date:
2016-10-25
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

If an admin switches to another be_user account, this action should be reported in the log.

Further all actions should be marked as admin user.

F.e.

Admin Account: AdminUserName
User Account: myUser.

Admin User Switches to User Account - Log Message:

User AdminUserName logged in from xxx.xxx.xxx.xxx as myUser

For all actions done as "myUser" the User column should contain AdminUserName as [myUser] (see screenshot)

Example.png View (23.7 KB) Stefan Busemann, 2016-10-25 17:45

Screenshot_4.png View (31.7 KB) Christian Eßl, 2019-05-25 13:03

Associated revisions

Revision c39bf90e (diff)
Added by Christian Eßl 5 months ago

[FEATURE] Add log message for "Switch User action"

If an admin user switches to another be_user account via the "Switch User"
action in the "Backend users" module, the action is now logged to the
sys_log.

Resolves: #78432
Releases: master
Change-Id: I0a9cb35e2d8734eb86ff475afeeac821a2f2a78a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60824
Tested-by: TYPO3com <>
Tested-by: Guido Schmechel <>
Tested-by: Anja Leichsenring <>
Reviewed-by: Guido Schmechel <>
Reviewed-by: Anja Leichsenring <>

History

#1 Updated by Riccardo De Contardi over 2 years ago

  • Category set to Logging

#2 Updated by Christian Eßl 6 months ago

Looks like the second part of this issue is already supported in master.

If an admin user switches to another beuser, all logged actions in the backend will show something like "editor (via admin )" as the originator. (see my attached screenshot)

So only the actual switch from admin to another user is currently not logged. (which in my opinion would be a nice addition)

#3 Updated by Gerrit Code Review 6 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60824

#4 Updated by Gerrit Code Review 6 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60824

#5 Updated by Gerrit Code Review 6 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60824

#6 Updated by Christian Eßl 5 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#7 Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF