Language

How to grant accounts, roles and permissions

Passwords default to 8 characters including uppercase, lowercase and digits; the agent seed gets only two codes; backup download and restoration, and kernel-level account management, are hard constraints restricted to administrators.

Permissions in the backend are strings of codes, not role names like "admin / editor / read-only". Roles are merely collections of codes, and you can build your own; a few things are pinned down as "only the built-in administrator can do them" and are not assigned to any role.

Password rules

Default requirements: at least 8 characters, containing uppercase English letters, lowercase letters and digits at the same time, with no special symbols required. The security center can raise the minimum length, but the floor stays at 8.

Installation, creating an account and resetting a password all go through the same backend rules, and the frontend's Chinese and English prompts stay in sync with them — you will never see "the UI says it passes but the submission is rejected".

Two compatibility guarantees: existing accounts are still validated against the password they were set with, and will not be force-reset by an upgrade; a stricter saved length policy will not be silently reverted by an upgrade.

Roles and permission codes

The system ships with a few built-in roles, one of which is the customer-service agent. The agent seed gets only two codes: read conversations, take sessions. Message boards, assistant configuration and content writes are not among them — a missing grant can be topped up in the backend at any time, while an extra grant is only discovered through audit, so the seed is made to give less.

To take tickets, one must actually be granted those two codes. That means "opening an agent seat for a person" is two steps: create the account, grant customer-service permissions. This is the price of separated domains, not a missing step in the flow.

Permissions are separated by business domain

The AI assistant and AI customer service are two screens, and their read/write codes belong to the two domains respectively. The customer-service panel (conversations, knowledge base, online status) only accepts codes from the customer-service domain — if they referenced codes from the assistant domain, a hard-to-diagnose symptom would appear: an agent with only customer-service permissions cannot see the conversation panel at all in the backend, the API returns 200, the desktop client works, and the backend looks as if the feature did not exist.

A few things only the administrator can do

  • Download of database backups and whole-site archives
  • Restoration (uploading an archive and executing it)
  • Account management at the kernel level

These three kinds are hard constraints: ordinary roles cannot be granted them; grants that were wrongly assigned historically are withdrawn during startup and recovery coordination, and the backend shows which roles and permissions were withdrawn. Read-only operations lists can be delegated; download cannot. Account management is included too, because if "being able to change permissions" could be delegated to a non-administrator role, it would become a path to self-escalation.

A common misconfiguration

When granting permissions to a content editor, it is easy to tick the "operations" domain on the side, because he complained that "I cannot see the site status". Read-only status can be delegated; but if the same domain contains write codes for download or restoration, ticking it turns him into someone who can take away the whole site's data. Ask first which data he needs to read, then decide which code to grant.