I want to log each admin actions, so when an admin creates, updates or deletes a document, the functions occurs logging the admin and the modified document's details.
How to know the document updater using functions Event
You can use Appwrite events this one databases.*.collections.*.documents.* to be exact.
But, this event will emit in any collection change regarding the user.
As of now, there's no way to know who triggered the event.
For the updatedBy attribute track this issue.
The best option now would be to wrap the collection update inside a function.
Recommended threads
- Dotnet functions on cloud
I'm trying to deploy my .Net8 functions to my project on cloud.appwrite through the CLI. I'm getting this error.
- Query multi-tenant db with $permissions ...
I'm setting up a multi-tenant database with RLS enabled. My users my have permissions set for multiple Teams, and as such when they query the database with the ...
- All projects deleted
Hello, from the appwrite console last week I re-activated some of my old project and published them, yesterday I checked and none of the apps were working, now ...