# How the Salto Space-Schindler connector synchronizes data
> Reference for how the Space-Schindler connector maps Schindler access templates, Salto Space users, and keys between both systems.


Each synchronization compares the full data set in both systems and applies the differences.
Salto Space is the source of truth for users and keys.
Schindler is the source of truth for access templates.

## Access templates: Schindler to Salto Space {#access-templates-schindler-to-salto-space}

The connector creates one Salto Space [user access level](/space/user-guide/operator/cardholders/user-access-levels) for each Schindler access template.
The user access level name is the template name with the `SCHINDLER` prefix, for example `SCHINDLER Lobby and floors 1-10`.
The connector keeps these user access levels in sync:

- When you add an access template in Schindler, the connector creates the matching user access level.
- When you delete an access template in Schindler, the connector deletes the matching user access level.
- The connector identifies each user access level by the template name.
When you rename a template in Schindler, the connector deletes the old user access level and creates a new one, so add the users to the new user access level again.
- The connector doesn't assign doors to these user access levels.
They control elevator access in Schindler.

{{% info-panel %}}
Don't create user access levels whose name starts with `SCHINDLER` yourself, and don't rename the ones the connector creates.
The connector treats every user access level whose name starts with `SCHINDLER` as its own.
{{% /info-panel %}}

## Users and keys: Salto Space to Schindler {#users-and-keys-salto-space-to-schindler}

The connector provisions every Salto Space user who belongs to at least one `SCHINDLER` user access level.

| Salto Space | Schindler |
| --- | --- |
| Key ROM code | MIFARE identity |
| The general purpose field selected in **Email field (GPF)** | Email identity, when the field has a value |
| First name and last name | First name and family name |
| `SCHINDLER` user access levels | Access templates |
| Activation and expiration dates | Validity start and end |

The connector applies these rules:

- A user without an expiration date gets access with no end date.
- When a user's key changes, the connector revokes the old key in Schindler and provisions the new one.
- When you remove a user from their last `SCHINDLER` user access level or delete the user, the connector revokes their Schindler access.
- The connector only revokes access it provisioned itself.

### Users the connector skips {#users-the-connector-skips}

The connector skips the following users and revokes any Schindler access they already have:

- Users who are banned in Salto Space.
- Users whose expiration date is in the past.
- Users without a key, or whose key ROM code doesn't have 14 or 16 hexadecimal digits.

The connector also skips users whose `SCHINDLER` user access levels don't match any current Schindler access template, without revoking their existing access.

## Safeguards against mass removal {#safeguards-against-mass-removal}

The connector limits how much access it revokes in a single synchronization:

- If more than 25% of the provisioned users or more than 10 users, whichever is higher, are missing from Salto Space, the connector revokes none of them.
It logs a warning that the revocation exceeds the safety threshold and checks again at the next synchronization.
- The connector revokes at most 500 users in one synchronization and continues with the rest in the next one.
- If a key now belongs to another Salto Space user, the connector keeps the Schindler access for the new holder instead of revoking it.

{{% info-panel %}}
These safeguards apply to revoking user access in Schindler.
They don't apply to the `SCHINDLER` user access levels in Salto Space, which always follow the access templates in Schindler.
{{% /info-panel %}}

