Gatekeeper

Role-based access control with wildcard permissions and a roles manager in the admin

Community 25 268/wk MIT v1.1.0

Installation

pnpm add payload-gatekeeper

About

Gatekeeper adds role-based access control to a Payload project, so you can decide which users may read, create, update or delete each collection. It creates a Roles collection in the admin panel where you define roles with their own permissions, and it generates permissions for every collection automatically. Wildcard rules such as all actions on one collection or read access everywhere let you grant broad access without listing every permission. Roles can be restricted to specific user types, new users can receive a default role, and the first user can be made a super admin. Non-logged-in visitors get a configurable public role, and role assignment is limited to permissions the person assigning the role already holds.

Package info

Package name
payload-gatekeeper
Latest version
1.1.0
Unpacked size
404 kB
License
MIT
Weekly downloads
268
Last publish
Aug 18, 2025

Similar plugins

More in Auth

Birth month and year check at sign-up that flags minors by country and region

Lets one Payload admin panel manage content for many separate tenants

Linked accounts and role hats, with a second factor before switching to a sensitive role

Sells digital products with signed download links that expire and stop on refund

Adds passkey sign-in and passkey management to the Payload login and account screens

Lets AI assistants read and edit Payload content over MCP with scoped API keys