Page 1 of 1
Immutable Log of Admin Actions
Posted: Mon Sep 08, 2025 1:57 pm
by burt
I've been wondering about having a page that shows a log of all the actions an Admin has taken, a bit like the new Pulse Analytics system but for recording Admin side rather than Shop Side.
For example (obviously laid out nicely in a new admin side page);
Micky | print_invoice | {invoice id: 123} | 2025-09-08 14:48
Micky | login | {} | 2025-09-08 14:45
Willy | add_product | Mushrooms | {price: 3.50, quantity: 100} | 2025-08-28 08:50
Willy | login | {} | 2025-08-28 08:45
Mickey | add_special | Lime | {special price: 1.75} | 2025-08-28 08:31
Mickey | price_update | Oranges | {old price: 1.99, new price: 1.50} | 2025-08-28 08:30
Mickey | add_admin | Willy | 2025-08-28 03:00
I guess filterable by admin user and date ?
Anyone have thoughts or input on this idea?
Is it worth the time and effort of bring to reality?
Re: Immutable Log of Admin Actions
Posted: Mon Sep 08, 2025 3:47 pm
by azpro
I guess filterable by admin user and date ?
Yes
Anyone have thoughts or input on this idea?
We kind of integrated this in all the tables eg order_history we added column admin_initials. Admin_initials is set in administrators.
Just start - and if it is available probably a lot of ideas will come up.
Is it worth the time and effort of bring to reality?
Yes
Re: Immutable Log of Admin Actions
Posted: Mon Sep 08, 2025 6:03 pm
by Kofod95
This would also allow tracking potential errors, so yes.
CTRL+Z is often useful when working on a computer, and this would help the "CTRL+Z"-guy for a PhoenixCart store.
//Daniel
Re: Immutable Log of Admin Actions
Posted: Mon Sep 08, 2025 7:25 pm
by azpro
Are you calling me "CTRL+Z"-guy????

Re: Immutable Log of Admin Actions
Posted: Mon Sep 08, 2025 9:15 pm
by Dan Cole
For those with employees I can see a use for something along these lines but for those who don't, I don't.
Dan
Re: Immutable Log of Admin Actions
Posted: Tue Sep 09, 2025 4:34 pm
by 14Steve14
Not used the latest version or installed it to test yet, but do I take it that it is now possible to have different admin logins for different users in core. If so, then logging each users actions could be beneficial.
If only one user allowed, then cant see the point as that one user would know what they have done already. Saying that it may be handy to have a record of what was done, but at what point would it be possible to delete user actions
Re: Immutable Log of Admin Actions
Posted: Tue Sep 09, 2025 5:38 pm
by ecartz
14Steve14 wrote: ↑Tue Sep 09, 2025 4:34 pm
it is now possible to have different admin logins for different users in core.
That's been possible as long as Phoenix has had the name. It looks like it was possible even in versions like Frozen.
There are some issues with doing that. For example, it might be hard to password protect the admin folder with more than one user. But if you only run the file protection, it has supported multiple admin users since the original community edition.
The folder protection is actually outside of Phoenix, although we try to update it. We'd need more integration with the host to integrate it properly. As is, you'd have to do something in the host configuration each time you wanted to add a user. And add the user in the Phoenix admin in parallel (or depending on what you do, the Phoenix admin may add the admin folder user).
Re: Immutable Log of Admin Actions
Posted: Tue Sep 09, 2025 5:53 pm
by burt
14Steve14 wrote: ↑Tue Sep 09, 2025 4:34 pm
different admin logins for different users
This predates Phoenix. At least back to 2.3.4 if not earlier.
From what I recall just press "New Admin User" at admin > configuration > administrators