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?
Immutable Log of Admin Actions
- burt
- Core Team
- Posts: 4550
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Immutable Log of Admin Actions
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
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
YesI guess filterable by admin user and date ?
We kind of integrated this in all the tables eg order_history we added column admin_initials. Admin_initials is set in administrators.Anyone have thoughts or input on this idea?
Just start - and if it is available probably a lot of ideas will come up.
YesIs it worth the time and effort of bring to reality?
- 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
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
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
Here are a lot of corns: Phoenix user guide
-
14Steve14
- Senior Contributor
- Posts: 921
- 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
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
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
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).
- burt
- Core Team
- Posts: 4550
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Immutable Log of Admin Actions
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.
I am here to build with you. Let's help each other.