Roles & Privileges

Generates role-based CRUD privileges for every collection and global

Community 6 16/wk MIT v1.2.3

Installation

pnpm add roles-privileges-payload-plugin

About

Roles & Privileges creates a set of permissions for every collection and global in a Payload project, then checks them on each request. Instead of writing access functions by hand for each collection, you assign roles to users and select the privileges each role should have.

The plugin adds a roles collection with a privilege selector in the admin panel, grouped by collection and global. Existing access rules stay in place and are wrapped, so a user must pass both the original rule and the matching privilege. A Super Admin role is seeded with every privilege, and the first user created receives it by default, so you are not locked out during setup. Custom privileges can be registered for app-specific actions such as publishing.

Package info

Package name
roles-privileges-payload-plugin
Latest version
1.2.3
Unpacked size
258 kB
License
MIT
Weekly downloads
16
Last publish
Dec 21, 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