Skip to main content
userAuditLogEntries is the audit log of user accounts: logins, password and email changes, linked accounts and admin actions. One document is one event on one account. web owns it; the schema is services/web/app/src/models/UserAuditLogEntry.mjs, and core writes through services/web/app/src/Features/User/UserAuditLogHandler.mjs.

Fields

Who Writes It

Operations written by core: Operations written by our modules (services/web/modules/...):

Who Reads It

Core CE has no page that shows this log.

Indexes

tools/migrations/20220929193200_add_auditLog_indexes.mjs first created user_id_1 on { userId: 1 }; 20251117093546 replaces it with the compound index. The schema marks userId and managedSubscriptionId with index: true, but Mongoose auto-indexing is off (services/web/app/src/infrastructure/Mongoose.mjs:7), so only the migrations above create indexes. The managedSubscriptionId index migration is tagged saas only.

Notes

  • Entries expire 2.5 years after timestamp through the TTL index.
Last modified on November 14, 2026