User Management
User Management is visible only to administrators. The product does not offer self-service registration; accounts and roles are always maintained by administrators. The page is divided into two tabs, "Users" and "Roles," managing accounts and permissions respectively.
Users Tab
The Users tab lists all accounts in a table, including username, full name, role, status, and update time.
Create a User
- Select "New User," fill in the username, full name, and initial password in the dialog, and choose the role and enabled status.
- After confirming, the account is created and can sign in according to its role.
Field rules are as follows:
| Field | Rules |
|---|---|
| Username | Starts with a lowercase letter; the rest are lowercase letters, digits, or dots, underscores, and hyphens; 2–32 characters; cannot be modified after creation |
| Full name | Optional; used for interface display |
| Password | At least 8 characters |
| Role | Chosen from existing roles; defaults to Operator |
| Enabled | When disabled, the account cannot sign in |
Edit, Disable, and Reset Password
- Edit: username is read-only; full name, role, and enabled status can be changed.
- Disable: turn off the enabled status, and the account immediately cannot sign in; it recovers after re-enabling.
- Reset password: in row actions, select "Reset Password"; the new password set must be at least 8 characters.
Session Management
- In row actions, select "Sessions" to view the account's active sessions, including the last activity time and client information.
- You can choose "Force Sign Out" for a specified session, and the corresponding account must sign in again.
Delete an Account
- Select an account and choose "Delete"; it takes effect after confirmation.
- The built-in admin and operator accounts and the currently signed-in account cannot be deleted.
Roles Tab
The Roles tab lists all roles in a table, including role ID, display name, level, permissions, level-gated operations, and user count.
Create and Edit Roles
- New role: fill in the role ID, display name, description, and level, and assign menu permissions and level-gated operations.
- Edit role: role ID is read-only; the rest can be changed.
- The role ID naming rules are the same as for usernames: starts with a lowercase letter; the rest are lowercase letters, digits, or dots, underscores, and hyphens.
Permission Assignment
- Menus: check the pages the role can open; the operation items under a page are authorized together with their menu.
- Level-gated operations: when checked, the role can perform the corresponding operation (such as delete or modify) only on content created by someone whose level is not lower than its own.
Delete a Role
- The built-in admin and operator roles cannot be deleted; the admin role's menu and operation permissions are locked and cannot be changed.
- Before deleting a custom role, first handle accounts that reference it.
Built-In Accounts
The product provides two non-deletable built-in accounts: administrator admin and operator operator. Change the initial passwords promptly after first sign-in. For the correspondence between roles and menu permissions, see Sign In and Accounts.