Repository navigation
Make row-level permissions available in the free self-hosted edition (or offer a one-time RLS license) #30966
Acacio-Azevedo
started this conversation in
Ideas
Replies: 1 comment
|
I vote for 1. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Scope & Context
Feature request: Make Row-Level Security (RLS) available in the free, self-hosted Community Edition of Twenty CRM. As a last resort, offer a standalone, one-time license for RLS without requiring a full Organization subscription.
Twenty is an impressive open-source CRM, particularly because of its modern interface, extensibility, API-first architecture, and self-hosting capabilities.
However, there is one fundamental limitation that can prevent small and medium-sized sales teams from adopting it: users cannot securely access only the customer records assigned to them without upgrading to a paid plan.
This is not necessarily a request for sophisticated enterprise access control. The primary use case is straightforward:
One CRM instance.
One centralized customer database.
Multiple sales representatives.
Each representative sees only their assigned customers, contacts, and opportunities.
Managers and administrators can access the complete customer portfolio.
Reassigning a customer automatically updates who can access that record.
A sales team should not need multiple CRM instances, duplicated objects, separate databases, or complex synchronization workflows to achieve basic customer portfolio isolation.
The primary request is to make Twenty's existing row-level permission capabilities available in the free self-hosted edition.
If unrestricted RLS cannot be included in the Community Edition, a simpler owner-based access model would address the most important use case.
And if neither option is commercially feasible, please consider offering RLS as an optional standalone, perpetual, one-time license with a fixed price per installation, without requiring a recurring subscription for the complete Organization package.
Current behavior
According to Twenty's official documentation and pricing information:
The free self-hosted edition includes custom roles and object-level/field-level permissions.
Row-level permissions are reserved for the Organization plan.
Row-level predicates declared through the Apps Framework can be synchronized without the required entitlement, but they are not enforced.
The Metadata API also rejects attempts to create row-level predicates without the entitlement, returning
ROW_LEVEL_PERMISSION_FEATURE_DISABLED.References:
Twenty pricing
Twenty permissions FAQ
Twenty Apps Framework — Roles and row-level security
Practical example
Consider a company with three sales representatives and one manager:
Customer | Assigned salesperson -- | -- Company A | John Company B | Mary Company C | Peter Company D | JohnThe Community Edition could provide these basic ownership rules, while Organization retains advanced functionality such as:
Complex conditional predicates.
Multiple predicate groups with AND/OR logic.
Advanced cross-object authorization.
Hierarchical or team-specific access policies.
More sophisticated record-sharing rules.
This would create a clearer distinction between essential access isolation for small teams and advanced enterprise authorization.
Basic owner-based permissions should not require administrators to create and maintain a separate rule for every customer or salesperson.
Last-resort commercial alternative: Standalone RLS license
If free RLS is not commercially viable, please consider selling it independently of the Organization subscription.
Suggested model:
One-time fixed purchase price for a self-hosted installation.
No recurring per-user or per-seat charges.
No requirement to purchase unrelated enterprise features.
A perpetual entitlement to the purchased functionality.
Continued compatibility with supported Community Edition updates.
Optional paid support or maintenance services, clearly separated from the base license.
The price and licensing terms would naturally be determined by the Twenty team.
The important point is providing an accessible option for organizations that need only RLS, rather than SSO, enterprise audit features, higher AI allowances, or priority support.
This model would also allow Twenty to monetize an otherwise difficult-to-serve segment of self-hosted users who are willing to pay for a specific feature but cannot justify a complete enterprise-oriented subscription.
Why this matters
1. Customer portfolio isolation is a foundational CRM requirement
For many businesses, separate sales portfolios are part of daily operations.
Sales representatives may manage different customers, territories, commissions, negotiations, and commercial relationships.
A centralized CRM must support controlled visibility without requiring the company to fragment its customer database.
Without this capability, a multi-user CRM can be unsuitable for actual sales operations, even if its interface and other features are excellent.
2. Data centralization should not come at the expense of access control
The purpose of a CRM is to provide a consistent source of customer information.
Creating separate objects, databases, or instances for different employees works against that purpose.
It can introduce duplicate records, synchronization failures, inconsistent reporting, complex customer reassignment, and additional administrative overhead.
Row-level permissions solve this problem directly.
3. Comparable open-source products already support this use case
This is not a request for an unusual or experimental feature.
Other open-source business systems already provide mechanisms for controlling access to individual customer records.
EspoCRM
EspoCRM provides role-based access levels such as
Own,Team, andAll, including separate permissions for reading, editing, and deleting records.These controls are documented as part of its role-management functionality, and EspoCRM provides a free self-hosted open-source edition.
References:
EspoCRM — Roles and permissions
EspoCRM — Free open-source download
SuiteCRM
SuiteCRM documents
Owner,Group, andAllpermission levels for CRM modules, allowing sales representatives to access their own records while managers receive broader visibility.References:
SuiteCRM — Roles and Security Groups
SuiteCRM — Open-source commitment
ERPNext / Frappe Framework
Frappe provides role permissions, owner-based controls, and user permissions that can restrict access to selected customer records and related transactions.
Its approach differs from Twenty's predicate-based RLS and may require explicitly maintaining customer assignments, but it demonstrates that record-specific authorization is not inherently an enterprise-only feature.
References:
Frappe — Users and Permissions
ERPNext — Restrict Sales Users to Their Customers and Transactions
The concern is not that Twenty lacks the engineering capability to implement RLS. The concern is that competing open-source systems make fundamental record isolation accessible without requiring an enterprise-oriented subscription.
4. A more accessible baseline could strengthen Twenty's ecosystem
Providing basic RLS in the Community Edition could:
Remove a major barrier for small multi-user businesses.
Increase practical adoption of self-hosted Twenty.
Encourage community contributions and extensions.
Make Twenty more competitive in open-source CRM evaluations.
Help smaller teams adopt Twenty before upgrading to more advanced commercial capabilities.
Organization would still offer a meaningful value proposition through advanced permissions and other commercial features.
Technical inputs
The proposal is primarily about feature availability, entitlement enforcement, and product packaging, not rebuilding RLS from scratch.
Twenty already has row-level permission infrastructure.
The Apps Framework documentation describes
rowLevelPermissionPredicates, including predicates that compare an ownership field with the currently authenticated workspace member.It also documents the Organization entitlement requirement and the behavior of predicates on plans without RLS.
Reference: Apps Framework — Roles and row-level security
Suggested implementation considerations
Reuse the existing authorization engine. Avoid creating a separate, UI-only permission mechanism for the Community Edition.
Review entitlement enforcement. Allow the permitted RLS capabilities to be configured and enforced in eligible free self-hosted workspaces, or activated through a standalone RLS entitlement.
Keep permissions server-side. Apply restrictions consistently across supported REST/GraphQL APIs, list queries, record detail queries, search, exports, and integrations.
Preserve object-level permissions. Row-level rules should further restrict eligible records rather than overriding existing object access restrictions.
Support current-user ownership. Rules should compare a workspace-member ownership relation with the authenticated user, not merely the record creator.
Handle reassignment immediately. Changing the responsible salesperson should update effective access without duplicating records or running synchronization jobs.
Define safe behavior for unassigned records. A sensible default is restricting unassigned records to appropriately authorized management users until they are assigned.
Validate related-record access. Prevent contacts, opportunities, activities, or relationship queries from unintentionally exposing information about restricted companies.
Include indirect access paths. Aggregations, record counts, lookups, automation tools, and AI/MCP integrations must respect the same authorization policy.
Avoid entitlement regressions. If a separate license is introduced, enabling it should activate the existing RLS implementation rather than requiring users to maintain a custom fork.
The specific implementation details can be determined by maintainers.
Suggested acceptance criteria
Given a single self-hosted Twenty instance with three salespeople and one manager:
All customers remain in the same Companies object and database.
A salesperson can read only their assigned customer records.
A salesperson cannot access another representative's records through direct URLs or supported APIs.
Search, exports, and related-record queries respect the same restrictions.
The manager can access all customer portfolios when authorized.
Reassigning a customer updates access for both the previous and new owner.
The access model works without separate workspaces, duplicate objects, or multiple CRM instances.
Permissions remain enforced after application restarts and supported upgrades.
The minimum free owner-based functionality, or the licensed RLS feature, can be configured through the existing Twenty interface.
Tests cover both authorized and unauthorized access, including attempts to bypass restrictions through alternative query paths.
Final request
I understand that Twenty needs a sustainable business model and that advanced enterprise capabilities are important commercial differentiators.
I am not asking for every Organization feature to become free.
I am asking the team to reconsider whether basic record-level access control should be treated as an enterprise-only feature when it is essential for operating a centralized, multi-user CRM.
My preference, in order, is:
Make existing RLS available in the free self-hosted Community Edition.
If that is not viable, provide free basic owner-based record isolation while keeping advanced RLS capabilities in Organization.
As a last resort, offer a standalone, one-time, fixed-price RLS license for self-hosted installations without recurring per-user fees.
Any of these approaches would make Twenty considerably more practical for smaller sales teams while preserving opportunities to monetize advanced features, managed hosting, and enterprise support.
Thank you for considering this request and for the work being done on Twenty.
All reactions