RBAC
Adds role-based access control to your Payload CMS.
Installation
pnpm add payload-rbac About
This plugin provides an easy way to implement role-based access control in your Payload CMS. It allows you to define roles like 'reader', 'maintainer', and 'admin', and to control access based on these roles. Users can be restricted from accessing resources based on their assigned role, enhancing the security and management of user permissions. You can configure it by adding a simple setup in the Payload config file, specifying which collections will utilize RBAC and what roles are available. The plugin also offers a range of access control functions such as allowing anonymous access, allowing access to any logged-in user, or filtering access based on specific conditions like published status. This flexibility supports various access management scenarios across applications. The plugin requires Payload version 1.6.22 or later and integrates directly with the Payload's collection and user management systems, making it a powerful addition for applications needing structured access control.
Package info
- Package name
payload-rbac- Latest version
1.0.3- Unpacked size
- 39 kB
- License
- MIT
- Weekly downloads
- 18
- Last publish
- Apr 18, 2023
More from teunmooij
View profileSwagger
Swagger plugin for Payload CMS that generates OpenAPI documentation.
create api docs
Generate OpenAPI 3 documentation for Payload CMS.
OpenAPI
Generate OpenAPI 3 documentation for Payload CMS endpoints.
Query
Type-safe query filters and field selection for Payload, with a REST select parameter plugin.
Similar plugins
More in AuthBetter Auth
Better Auth adapter and plugins for Payload CMS.
Passkey
Adds WebAuthn passkey login and management to Payload CMS accounts via Better Auth.
TOTP
Add an extra layer of security with Time-based One-time Passwords (TOTP).
Subscribers
Manage subscribers and channels with magic link authentication.
Keycloak SSO
Adds Keycloak single sign-on to Payload CMS 3 via an OIDC auth strategy with PKCE, silent token refresh, and permission-based access control.
Simple Social Login
Adds Google and Microsoft (Entra ID) OAuth social login buttons to the Payload admin panel and authenticated collections.