This plugin adds createdBy and lastModifiedBy fields to collections and globals so editors can see who created or last changed a document. It is registered in the plugins array of the Payload config through the auditFieldsPlugin function. It targets Payload 3.
add createdBy and lastModifiedBy fields to collections and globals
Installation
npm i @payload-bites/audit-fields114
Stars
6
Forks
0
Open Issues
3 weeks ago
Last Updated
0
Weekly Downloads
v1.7.0
npm Version
42.3 KB
Unpacked Size
0
Dependencies
Trends appear after 7 days of data. Daily snapshots have not started yet.
Shared by 7 plugins in rilrom/payload-bites.
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/908347705-audit-fields)<a href="https://payloaddirectory.dev/plugins/908347705-audit-fields"><img src="https://payloaddirectory.dev/badge/908347705-audit-fields.svg" alt="Payload Directory"></a>README
Add createdBy and lastModifiedBy audit fields to collections and globals.
pnpm add @payload-bites/audit-fields
payload.config.ts:/// ....
import { auditFieldsPlugin } from "@payload-bites/audit-fields";
export default buildConfig({
// ...
plugins: [
// ...
auditFieldsPlugin({
// ...
}),
],
});
For defaults, refer to defaults.ts.
For options, refer to types.ts.
Topics
Tags
sentry
Integrate Sentry error tracking with your Payload application
10018.1k/wk45.4kv3
payload audit
Automatic audit logging of create, update, delete and auth events across all Payload collections
70712/wk4v3
activity log
Log activity on selected collections and globals in a dedicated activity log collection
660/wk114v3
authors info
Tracks who created, edited and published documents across collections and globals
6557/wk181v3
payload auditor
Audit logging for Payload collections and globals using hook operations, with buffered writes and automatic log cleanup
640/wk79v3
activity log
Chronological activity feed of document changes and user logins across all collections and globals
6129/wk15v3