Include IP address in the User Activity Log for Add, Modify, Delete user
Parent Issue
No response
User Story
dotCMS logs do not currently include the user IP address in the User Activity logs for Adding a User, Modifying, and Deleting a User. DB is requesting that the IP address information be added to these logs as this is a requirement from their internal access control team.
Acceptance Criteria
The user IP address should be present in the user activity logs for Add, Modify, and Delete user.
Proposed Objective
Security & Privacy
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
https://dotcms.airfocus.com/DF-49 https://helpdesk.dotcms.com/a/tickets/28384
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
PRs:
- https://github.com/dotCMS/core/pull/30850
Let's add the IP also when starting to exec the action
Working as it should.
Adding User:
[11/12/24 17:12:40:112 GMT] INFO ajax.UserAjax: User Added : Date: 2024-12-11 17:12:39; IP: 201.203.117.121; User:dotcms.org.1
[11/12/24 17:12:40:112 GMT] INFO util.AdminLogger: class com.dotmarketing.portlets.user.ajax.UserAjax : User Added : Date: 2024-12-11 17:12:39; IP: 201.203.117.121; User:dotcms.org.1
Update User:
[11/12/24 17:14:09:968 GMT] INFO util.AdminLogger: class com.dotmarketing.portlets.user.ajax.UserAjax : User Updated : Date: 2024-12-11 17:14:09; IP: 201.203.117.121; User:dotcms.org.1
[11/12/24 17:14:19:334 GMT] INFO util.SecurityLogger: class com.dotmarketing.business.RoleAPIImpl : Adding role:'Publisher / Legal' to user:user-296cec60-8961-4a7d-a505-a26fdeacad59 email:[email protected] -- ip:201.203.117.121,user:Admin User [ID: dotcms.org.1][email:[email protected]]
Delete User:
[11/12/24 17:15:23:099 GMT] INFO util.ActivityLogger: class com.dotmarketing.portlets.user.ajax.UserAjax: system : Deleting user , User IP: 201.203.117.121
[11/12/24 17:15:23:276 GMT] INFO util.AdminLogger: class com.dotmarketing.portlets.user.ajax.UserAjax : User Deleted : Date: 2024-12-11 17:15:23; IP: 201.203.117.121; User:user-296cec60-8961-4a7d-a505-a26fdeacad59; Replaced entries with User:dotcms.org.2808