Grupos y Permisos
In advanced applications, access control can be managed through permissions and groups.
A permission gives a user the right to perform a given action (such as accessing a route).
A group brings together a set of users (a user can belong to more than one group).
Permissions can be attached to a user or a group. Attaching a permission to a group is equivalent to attaching the permission to each of its users.
Examples of groups are the "Free", "Pro" and "Enterprise" plans of a SaaS application. Depending of the price paid by the customers, they have access to certain features whose access are managed by permissions.
Permissions
The Permission
Entity
Property name | Type | Database Link |
---|---|---|
id | number | Primary auto generated key |
name | string | |
codeName | string | Unique, Length: 100 |