Give editors a fast, safe way to transfer ownership of many records at once. The Bulk Change Author plugin adds a Global Record Action to DatoCMS that lets you pick a collaborator and reassign the creator metadata across multiple entries in just a few clicks.
Why use this plugin?
Speed up editorial workflows: Update dozens (or hundreds) of items without manual edits or API scripts.
Stay permission-aware: Uses the current editor’s access token, so DatoCMS enforces “Edit creator” permissions automatically.
Consistent UX: Leverages Dato’s native dropdown action menu and modal styling so the feature feels built-in.
Error visibility: Summarizes successes and per-record failures, making it clear when additional permissions or retries are needed.
Features at a glance
Registers a Global Record Action labelled “Change creators…” in both the collection (table) view and the record detail view.
Opens a modal that fetches the project’s collaborators from the Content Management API (users.list()), letting the editor pick one collaborator.
Performs bulk items.update() calls with gentle concurrency limits to respect rate limits.
Displays post-action notices/alerts, including individual failure messages for items that could not be updated.
Works in the active environment (primary or sandbox) thanks to ctx.environment.
Installation
Clone or download this repository.
Install dependencies:
Terminal window
1
pnpminstall
Start the dev server:
Terminal window
1
pnpmdev
In your DatoCMS project, go to Settings → Plugins → Add new plugin → Create a new plugin.
Paste the local dev server URL (default http://localhost:5173) in the manual plugin URL field.
Ensure the plugin has the currentUserAccessToken permission enabled. It’s required to perform CMA calls on behalf of the editor.
When you’re ready to ship, run pnpm build and upload the contents of the dist/ folder to DatoCMS or host them on a CDN.
Usage
Navigate to any collection view or open a record detail page.
Select the entries you want to update (or open the record’s dropdown).
Choose Change creators… from the dropdown action list.
In the modal, pick the collaborator who should become the new creator.
Confirm; the plugin updates all selected items and reports any failures.
> Tip: If you see “403 Forbidden” errors, make sure your role grants “Edit creator” permission for the relevant models.
Development notes
Tech stack: React 18, Vite, TypeScript, datocms-plugin-sdk, datocms-react-ui, and the browser-ready @datocms/cma-client-browser.
Key entry points:
src/main.tsx – registers the dropdown action, executes the modal, and handles result notices.
src/entrypoints/SelectCreatorModal.tsx – modal UI and collaborator loading logic.