Trilium does not support multiple users. In order to have two or more persons with their own set of notes, multiple server instances must be set up. It is also not possible to use multiple sync servers.

To allow multiple server instances on a single physical server:

- For Packaged version for Linux or Manually, if starting the server manually just specify a different port and data directory per instance:

      TRILIUM_NETWORK_PORT=8080 TRILIUM_DATA_DIR=/path/to/your/data-dir-A /opt/trilium/trilium.sh

  For a second instance:

      TRILIUM_NETWORK_PORT=8081 TRILIUM_DATA_DIR=/path/to/your/data-dir-B /opt/trilium/trilium.sh

  If using `systemd`, then set the environment variables in the service configuration.

- For Using Docker, simply use two different containers, each with their own port binding and data directory.

- For On NixOS, the only possible way is to use Docker OCI containers or at least one NixOS container with its own service definition.

For support or additional context, see the related GitHub Discussion.