Immutable Log of Admin Actions

Open to all! Ask other shopowners for help.
Post Reply
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Immutable Log of Admin Actions

Post 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?
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
azpro
Contributor
Posts: 177
Joined: Fri Nov 06, 2020 8:25 am
Phoenix Version: v1.1.0.6
Has thanked: 30 times
Been thanked: 34 times

Re: Immutable Log of Admin Actions

Post 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
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Immutable Log of Admin Actions

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
azpro
Contributor
Posts: 177
Joined: Fri Nov 06, 2020 8:25 am
Phoenix Version: v1.1.0.6
Has thanked: 30 times
Been thanked: 34 times

Re: Immutable Log of Admin Actions

Post by azpro »

Are you calling me "CTRL+Z"-guy???? :lol:

:+1:
Dan Cole
Senior Contributor
Posts: 498
Joined: Fri Oct 25, 2019 2:14 pm
Phoenix Version: 1.0.8.21
Has thanked: 67 times
Been thanked: 61 times

Re: Immutable Log of Admin Actions

Post 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
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Immutable Log of Admin Actions

Post 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
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Immutable Log of Admin Actions

Post 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).
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Immutable Log of Admin Actions

Post 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
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply