Skip to main content
Version: next

Role Management

Overview

A Role is a collection of permissions and the core vehicle for access control. Each role defines "which menus are visible" and "what operations can be performed on which resources." Assigning roles to users or user groups completes the authorization process. The Role Management page is used to view, create, and delete roles, and to enter role details to configure their permissions and associations.

Role Management list page

Key Features

  • Permission templates: Encapsulate a set of permissions as a role for repeated reuse and batch assignment
  • Two permission dimensions: UI permissions (menu visibility) and resource permissions (resource access levels)
  • System roles + custom roles: Out-of-the-box built-in roles combined with flexible custom roles
  • Bidirectional association: Manage a role's users and user groups from the role side, or assign roles from the user/user group side

Role Types

Roles in the system are divided into two types:

TypeSourceDeletablePermissions Editable
System roleBuilt-in (e.g., System Administrator, Read-Only User)NoNo
Custom roleCreated by an administratorYesYes
Built-in Roles

The system includes two built-in roles: "administrator" (full access) and "viewer" (read-only access). If you need a different combination of permissions, please create a custom role. See Overview - Built-in Roles.

Role List Page

Interface Layout

The Role Management list page uses a standard list layout. For common table operations such as column management, density, and pagination, see Data Table Common Operations.

Role List

ColumnDescription
Role nameRole name; click to enter role details
TypeSystem role or custom role
DescriptionRole description
User countNumber of users directly assigned this role
User group countNumber of user groups associated with this role
ActionsDelete role (only custom roles can be deleted; requires edit permission)

Enter a keyword in the search box, click Search to query, or click Reset to clear. Supports searching by role name.

Toolbar

ButtonFunctionUse Case
CreateOpens the "Create Role" dialogCreating a new custom role
Batch DeleteDeletes multiple selected roles at onceBulk cleanup
RefreshReloads the listWhen you want to see the latest data

Create and delete operations are only visible to administrators with "full access" permission on the "Role" resource.

Creating a Role

Click the Create button in the toolbar to open the Create Role dialog.

Create Role dialog

Field Descriptions

FieldRequiredDescription
Role nameYesThe name of the role; it is recommended to reflect its function (e.g., "CI Maintenance Operator")
DescriptionNoDescription of the role's purpose

Creation Steps

  1. Click the Create button in the toolbar
  2. Fill in the role name (required) and description (optional)
  3. Click Create to submit

A "Role created successfully" message will appear upon successful creation, and the new role will immediately appear in the list. A newly created role does not yet have any permissions configured — by default, all menus are invisible and all resources are inaccessible. You need to enter the details page to configure permissions before the role becomes meaningful.

Deleting a Role

Deleting a Single Role

Click the delete icon in the Actions column of the corresponding row, then click Confirm in the confirmation dialog.

  • The delete button for system roles is grayed out and cannot be deleted

Batch Deletion

  1. Select multiple custom roles to delete
  2. Click Batch Delete in the toolbar
  3. Click Confirm in the confirmation dialog

When the batch selection includes system roles, the batch delete button cannot be clicked.

Impact of Deleting a Role

After deleting a role, all users directly assigned this role and all user groups associated with this role will lose the corresponding permissions. If some users rely entirely on this role, they will lose access to related features after deletion. Please confirm the scope of impact before deleting.

Entering Role Details

Click the Role name link in the list to enter the Role Details page. Here you can configure the role's two types of permissions and manage its associated users and user groups. See Role Details.