Skip to content

General settings

These are the settings at the top of the CtrlSync configuration: how CtrlSync signs in to Microsoft Graph, which vault properties it reads and writes, and how often and in what quantity it synchronises. Every setting is listed at the foot of this page.

Client ID, Client Secret and Tenant ID come from the Entra ID registration. Leave Authentication URL, API URL and API Version at their defaults — https://login.microsoft.com, https://graph.microsoft.com and v1.0 — which point at the global Microsoft Graph.

The rest of the section names vault properties, created in the vault structure step. They fall into two groups:

  • On the connection object: whether it is active, whether it is in an error state, an on-demand sync switch, a status text, the Graph URL and Graph ID of the site, team or channel.
  • On each synchronised document: the reference to its connection, the Drive ID of the document library it came from, whether to add it to or delete it from the source, whether it has been deleted there, a hash of its content, and the raw Graph data.

Drive ID is what lets one connection cover several document libraries under the same site or team, since CtrlSync 0.26.6.0.

For every property setting and the data type it accepts, see Microsoft Graph configuration.

Synchronization frequency is how often CtrlSync exchanges data with Microsoft Graph. Set its type to Interval; the other options are not supported.

Synchronise often: between 2 and 30 times an hour. Every run costs server time, but a long interval lets the changes pile up, and one large run is harder on the server than several small ones.

Max Batch Processors and Batch Size decide how that work is split: each processor handles one batch of operations at a time, and a batch holds at most Batch Size operations. The defaults are one processor and 100 operations.

Microsoft Graph sometimes reports, under load, that a site or channel no longer exists when it does. A connection that receives such an answer goes into an error state, and asking Graph again usually clears it.

Maintenance Frequency is how often CtrlSync re-checks connections in an error state. It is set the same way as the synchronisation frequency.

Turn logging on, with the default log. Without it, nothing is left to answer what happened after a problem. Logging is the same in every CtrlDocs application; see Logging and email.

When you have finished, CtrlSync must report no local or server errors in M-Files Admin.

A correct configuration

Settings

Logging

Type
NLog logging configuration

This setting has no description in the application yet.

Settings in this group — 7 of them

Microsoft Graph configuration

Type
Graph configuration

Configuration for Microsoft Graph API integration.

Settings in this group — 19 of them

Employee Configuration

Type
Employee configuration

Configuration for employee data synchronization.

Settings in this group — 3 of them

Connection Configurations

Type
List of Connection configuration
Default
[]

Configuration for synchronization of documents from connections.

Settings on each entry — 27 of them

Synchronization frequency

Type
Frequency
Default
Every 10 minutes

Frequency at which synchronization operations are performed.

Settings in this group — 3 of them

Maintenance Frequency

Type
Frequency
Default
Every hour

Frequency at which maintenance operations are performed. These include connections that have entered an error state.

Settings in this group — 3 of them

Max Batch Processors

Type
Whole number
Default
1

Maximum number of batch processors to use. Each processor handles one batch of synchronization operations concurrently.

Batch Size

Type
Whole number
Default
100

Number of synchronization operations to process, at most, in each batch.

Main configuration settings, generated from CtrlSync 0.26.6.0.