NocoBase 2.0 Beginner Tutorial - Chapter 5: Users & Permissions
Originally published at https://docs.nocobase.com/tutorials/v2/05-roles-and-permissions Chapter 5: Users & Permissions — Who Sees What In the last chapter, we built forms and detail pages — our...

Source: DEV Community
Originally published at https://docs.nocobase.com/tutorials/v2/05-roles-and-permissions Chapter 5: Users & Permissions — Who Sees What In the last chapter, we built forms and detail pages — our ticket system can now handle data entry and viewing. But there's a problem: everyone sees the same thing after logging in. Regular employees who submit tickets can access the admin pages, technicians can delete categories... that's not going to work. In this chapter, we'll add "access control": create roles, configure menu permissions and data scope restrictions — different people see different menus and operate on different data. 5.1 Understanding Roles In NocoBase, a role is a collection of permissions. You don't need to configure permissions for each user individually — instead, you define a few roles first, then assign users to the appropriate roles. NocoBase comes with three built-in roles after installation: Root: Super admin with full permissions — cannot be deleted Admin: Administrat