Skip to content

User Role Based Controls #10421

Description

@oddieis

Scope & Context

We would like to request implementing role-based access controls in Twenty CRM.
The ticket is about restricting access to certain areas (like the admin section) and specific objects and records based on the user's role.

Current behavior

Currently, all users have the same level of access across the application.
There is no differentiation between roles, so sensitive areas like the admin panel and particular files are accessible to every user.

Expected behavior

Users should only be able to access areas and files permitted for their role.
For example, a standard user should not see the admin area or have access to files reserved for admin users.

Technical inputs

  • Create a new permissions model that maps user roles to allowed actions and resource visibility.
  • Refactor the routing and view components to enforce permission checks before rendering restricted areas.
  • Update file access services to incorporate role-based access checks.
  • Implement middleware for API endpoints to enforce these role-based restrictions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Dev status

    None yet

    Start date

    None yet

    Target date

    None yet

    Quarter

    None yet

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions