Reference
Audit Events
Every audit event type TMA Cloud records, with its metadata.
Every audit event type TMA Cloud records, with its metadata.
Authentication Events
auth.signup- User creates accountauth.login- User logs inauth.login.failure- Failed login attemptauth.logout- Session logoutauth.logout_all- Logout from all devicesauth.session_revoked- Single session revokedauth.other_sessions_revoked- All other sessions revokedauth.password_change- Password change attempt. Success records the newnewTokenVersion; failures record areasonofsession_not_recent,invalid_mfa_code, orinvalid_current_password
File Events
file.upload- File uploadedfile.upload.bulk- Multiple files uploaded in a single bulk operationfile.download- File downloaded (single)file.download.bulk- Multiple files/folders downloaded as ZIPfile.update- File contents replaced in place, viaPOST /api/files/:id/replace(metadata:fileName,size)file.delete- File moved to trashfile.delete.queued- Large move-to-trash operation queuedfile.delete.permanent.queued- Permanent deletion or Empty Trash operation queuedfile.restore- File restored from trashfile.restore.queued- Large restore operation queuedfile.rename- File/folder renamedfile.move- Files/folders movedfile.copy.queued- File/folder copy operation queuedfile.star- File starredfile.unstar- File unstarredfile.lock- Someone started editing a file, so others get it read-onlyfile.unlock- The editing lock was released
Rows written by older versions may also hold file.copy and file.delete.permanent, which the queued events replaced.
Folder Events
folder.create- Folder created (metadata:folderName,parentId)folder.download- Folder downloaded as a ZIP archive (metadata:folderName); logged only after the archive completes
Share Events
share.create- Share link createdshare.delete- Share link removedshare.access- Public view of share (anonymous access)share.download- File or folder downloaded from share
Document Events (OnlyOffice)
These events are only emitted when OnlyOffice integration is configured and enabled. If OnlyOffice is not set up, these events never appear in the audit log.
document.open- Document opened in OnlyOfficedocument.save- Document saved from OnlyOffice
Admin Events
admin.settings.update- Admin setting changed (metadata:setting, e.g.signup_enabled,hide_file_extensions;newValueorhidden)admin.settings.read- Admin viewed protected settings. A failure means someone other than the first user tried (metadata:action)admin.settings.updatewithsetting: "storage_config"- Bucket saved (metadata:provider,endpoint,bucket,region,targetChanged,credentialsChanged,version). A failed save is logged withstatus: failure,action: update_storage_config, and the failedstep. Credentials are never loggedadmin.user.list- Admin listed all usersadmin.user.update- Admin updated user (e.g. storage limit)admin.orphans.scan- Admin scanned for orphans (metadata:graceMinutes,storageOrphans,databaseOrphans)admin.orphans.delete- Admin deleted selected orphans (metadata:graceMinutes,requestedStorage,requestedDatabase,storageDeleted,databaseDeleted,storageSkipped,databaseSkipped)
Account Events
account.sub_user.create- Sub-user created (metadata:email,permissions; failure when the email is already in use)account.sub_user.update- Sub-user permissions replaced (metadata:permissions)account.sub_user.delete- Sub-user removed (metadata:email,permissions)account.permission_denied- A sub-user attempted something it was not granted (metadata:permission,method,path); alwaysfailureaccount.owner_action_denied- A sub-user attempted an owner-only action (metadata:method,path); alwaysfailure
Who Performed the Action
Every row records the acting login and the account it happened under:
user_id- The login that acted. For a sub-user this is the sub-user's own ID, never the owner's.account_owner_id- The account the action belongs to. Equalsuser_idfor owners.actor_role-ownerorsub_user.
The audit_activity view joins these back to names and emails. See Database Schema.
Event Metadata
The main metadata fields by event group:
- File Events:
fileId,fileName,fileSize,fileType. Forfile.upload.bulkandfile.download.bulk, metadata also includesfileIdsandfileCount. - User Events:
userId,email,ipAddress - Share Events:
shareLinkId,token,fileIds - Account Events:
email,permissions, and for denialspermission,method,path
Related Topics
- Audit Logs - Audit system guide
- Database Schema - Database structure
Last updated on