Permission
Set up various user roles with permissions tailored to access or modify designated tables / columns, interact with certain APIs, and ActionFlow, along with configuration of AI.
Last updated
Set up various user roles with permissions tailored to access or modify designated tables / columns, interact with certain APIs, and ActionFlow, along with configuration of AI.
Last updated
The permission system is the foundation of commercial software. Through refined permission control, it can effectively prevent data leakage, unauthorized access, and other security risks, ensuring the integrity and confidentiality of the system and data. Momen provides a permission management system that combines Role-Based Access Control (RBAC) and Attribute-Based Access Control (ABAC). While ensuring data security, it also allows for flexible and precise permission control.
Role: A collection of a type of users; user permission control is achieved by granting users roles, where roles are bound with multiple permissions.
Data Permission: Precisely controls the data content that a role can access or modify.
Action Permission: Controls the actions a role can perform, such as Actionflow, APIs, payment actions, refund actions, etc.
The system has two built-in roles:
Logged-in User: Any user who logs in (via username and password, phone number and password, etc.) is automatically granted this role.
Anonymous User: Unlogged visitors are assigned this role.
In addition to the system's built-in roles, developers can create their own roles. The number of roles that can be created varies with different Project versions:
Free Plan: 0 roles
Basic Plan: 1 role
Pro Plan: 10 roles
Operation Permission: Manage permissions for adding, deleting, modifying, and querying data.
Field Permission: Further configure the operation permissions for a specific column in the data table.
Advanced Filtering: Configure attribute-based and refined operation permissions through row filtering (e.g., users can only modify their own data).
Control the permissions for user actions, including API, Actionflow, AI, and Payment.
After configuring the roles, you can assign them to a user. There are two ways to do this:
Manually manage in the permission management system Click the button under "User Management" to view which users are under this role and add/remove users for this role.
Automatically manage in Actionflow Use the permission node in Actionflow to grant and remove roles for certain users, achieving some automated scenarios. For example, grant a VIP role after a user successfully purchases a product.
After changing the permission configuration, you need to deploy the backend for it to take effect. Automated authorization Actionflow also needs to be saved and deployed before it takes effect.
Encountering the error "User xxxx has no permission for xxxxx"
Cause: The user does not have the corresponding permission.
Solution: Go to the permission configuration and add the corresponding operation permission for the user's role.