
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
- Cannot add/update array field
How do I add or update the rows, How exactly to pass properties? (see provided image)
- TablesDB not available in FRA?
Hi, in the cloud version, v1.8.0 Frankfurt, is it possible to use TablesDB ? I don’t see that feature in the console.
- Type String is not a subtype of type int...
In flutter using appwrite: ^17.1.0, ```DocumentList response = await databases!.listDocuments( databaseId: "xxx", collectionId: "xxx", ...
