Skip to content

File shares

Who can do this: repository admins, and an administrator of the agent's machine.

The file system connector reads file shares and folders inside your network through the agent. Available on every plan.

Plan Every plan
Reads Folders and files below the mount points you choose, on Windows file servers, NAS shares and local drives, as the agent’s service account sees them and within the agent’s allowed roots
Does not read Anything outside the allowed roots or the service account’s rights; the files’ permissions (NTFS or share permissions); the text of encrypted or password-protected files
Reaches it through The agent in your network, outbound HTTPS on port 443
Limits Changes within about 5 minutes, a full rescan daily. With an agent on Windows, a renamed or moved file keeps its identity; with an agent on Linux, it is seen as removed and added, and loses its access override

Limits common to every connector — indexed text per document, file size for extraction, OCR — are in Connectors.

Folders and files below the mount points you choose, as the agent’s service account sees them. Files are content; their text is indexed, within the plan’s limits. Nothing is ever written, moved or deleted on the share.

  1. Install and enroll an agent on a machine that reaches the shares; see Agents.

  2. Run the agent’s service as an account that may read the shares, and nothing more.

  3. In the agent’s configuration file, limit what it may read with the file system plugin’s allowed roots, for example:

    "Plugins": {
    "filesystem": {
    "AllowedRoots": [ "\\\\files01\\finance", "D:\\Archive" ]
    }
    }

    Without allowed roots, the agent may read everything its account can, and browsing starts at the machine’s drives.

An on-premises file system connection: its settings, mount point and mount folder

  1. Connections → New connection: connector File system, on-premises, a name. There are no settings.
  2. On the connection, under Agents, add the agent.
  3. Check.
  4. New mount point: browse from the allowed roots and pick a share or folder, or type a location such as \\server\share\folder or D:\folder into Location.
  5. Mount it into a virtual folder, preview, and activate.

Every 5 minutes, the agent compares the folders most likely to have changed with how they looked at their last scan, for up to a minute, and ContentSurface rescans the folders that differ: a new, edited, renamed, moved or deleted file usually appears within minutes. The folders checked first are those that changed recently; on a very large share, a change in a folder that has been quiet for a long time may wait for the daily full rescan (see When changes appear), which runs as a safety net. The agent only lists folders for this; it never opens files or writes anything. A file renamed or moved within the share keeps its identity — and its links and access settings — once its new folder is scanned. A move ContentSurface cannot recognise, such as to another mount folder, loses the item’s access override; the scan reports it as a notice.

  • No agent covers this mount point: add the location to the agent’s allowed roots.
  • Access denied in the crawl status: the agent’s service account cannot read that folder or file.

In the API

The Portal does this through these calls; an integration can make them directly.

OperationCall
Creates a connection; its connector type and source location are fixed.POST /v1/admin/connections
The agents an on-prem connection uses.GET /v1/admin/connections/{id}/agents
Adds and removes the agents an on-prem connection uses; an added agent must be enrolled and report the connector's plugin. The answer names the mount points each added agent covers.PATCH /v1/admin/connections/{id}/agents
Where browsing starts: the connector's source roots.GET /v1/admin/connections/{id}/source-roots
The child containers of a source location, for choosing a mount point.GET /v1/admin/connections/{id}/browse
Validates a location through the connector and creates a mount point on it.POST /v1/admin/connections/{id}/mount-points