Skip to main content

Role Management

Role management is the core module of the system permission system. By creating roles and assigning menu permissions, button permissions, and API permissions, and then assigning roles to users, fine-grained permission control is achieved.

Feature Entry

Click "System Management → Role Management" in the left menu to enter the management page.

Role Management Page

Permission System

LevelDescription
UserSystem user
RoleA collection of permissions; a user can have multiple roles
PermissionMenu permissions, button permissions, API permissions

Role List

ColumnDescription
Role NameThe display name of the role
DescriptionDescription of the role function
StatusEnabled/Disabled status

Operation Features

FeatureDescription
AddCreate a new role
EditEdit role information
DeleteDelete a role
Batch DeleteBatch delete selected roles
API AuthorizationConfigure the APIs that the role can call
Menu/Button AuthorizationConfigure the menus and buttons that the role can access
RefreshRefresh the role list

Add/Edit Role

Click the "Add" or "Edit" button to open the role configuration dialog:

Role Configuration Dialog

Configuration Items

FieldDescription
Role NameThe display name of the role
DescriptionDescription of the role function
EnabledWhether to enable this role

API Authorization

Click the "API Authorization" button to configure the API interfaces that the role can call:

API Authorization Dialog

Authorization Operations

OperationDescription
SearchEnter keywords in the search box to filter APIs
Select AllOne-click select all API permissions
ClearOne-click clear all API permissions
Expand/CollapseExpand or collapse API groups
Tip

API permissions are displayed grouped by module. You can quickly locate the APIs that need authorization through search.

Click the "Menu/Button Authorization" button to configure the menus the role can access and the buttons it can operate:

Menu/Button Authorization Dialog

Authorization Operations

OperationDescription
SearchEnter keywords in the search box to filter menus/buttons
Select AllOne-click select all menu and button permissions
ClearOne-click clear all menu and button permissions
Expand/CollapseExpand or collapse the menu tree

Permission Tree Structure

Menu/button authorization is displayed in a tree structure:

LevelDescription
MenuFirst-level node, controls menu access permissions
ButtonSecond-level node, controls button operation permissions
Tip

Selecting a menu node will automatically select all button permissions under that menu. You can quickly locate the menus or buttons that need authorization through search.