# Entity mapping in the Salto Space-OnGuard connector
> Find out how the entities of the Salto Space platform map to the Lenel OnGuard software using the Space-OnGuard connector.


## Overview {#overview}

This section relates to mapping elements of the OnGuard software to those in Space.

## Credentials {#credentials}

Credentials (the term used in OnGuard), like the user's name or their Badge ID (Ext ID in Space) are created in OnGuard and transferred to Space.

![Credential mapping](images/credential-mapping.png "First, create the user in OnGuard")
{.border}

![Credential mapping in Space](images/credential-mapping-space.png "The user is then automatically transferred to Space")
{.border}

## Access levels {#access-levels}

In the below example, you can see three user access levels created in OnGuard:

- "Access Level Staff"
- "access level test"
- "new access level test 2"

![OnGuard access level](images/access-level-onguard.png "Creating access levels in OnGuard")
{.border}

These user access levels are then transferred to Space into zones.
These are defined in the description as **OnGuard access levels**:

![Space access level](images/access-level-space.png "The OnGuard access levels are defined in the description field in Space")
{.border}

Inside each zone, you can find the specified doors (access points) for the OnGuard access level.

![Space access points inside each zone](images/access-points-inside-zone.png "You can see the associated access points inside each zone")

{{% info-panel %}}
The zones are only synchronized when the timezones of the readers inside them are all the same.
If one reader's timezone is not aligned with the others, the zone will not be synchronized.
{{% /info-panel %}}

![Align timezones of the readers](images/timezones-aligned.png "Make sure you align the timezones of the readers inside the zones")
{.border}

## Mapping users and access levels {#mapping-users-and-access-levels}

In the OnGuard **Credentials** section, you assign an access level to users:

![OnGuard access levels](images/onguard-cardholder-access-level.png "OnGuard access levels")
{.border}

Then the user is then mapped to that access level in Space.

![Space access level mapped](images/access-level-space-mapped.png "Access level mapped in Space")
{.border}

## Creating doors {#creating-doors}

First you have to create an **Access Panel** in OnGuard:

![Access Panel in OnGuard](images/onguard-access-panel.png "Creating an 'Access Panel' in OnGuard")
{.border}

The equivalent of an **Access Panel** in Space is a group of doors (not a zone).
Here you can also define if the door is to be **online** or **offline**.

See the below **Salto IN** example.
Once created, in the **Reader and Doors** menu of OnGuard, all the online doors and related information have to be added to the different panels.

![Readers and Doors option in OnGuard](images/readers-and-doors.png "'Readers and Doors' option in OnGuard")
{.border}

{{% info-panel %}}
Note: Card format can be any of the options, as can ports and addresses.
{{% /info-panel %}}

Once you save this, the doors are then synchronized to the Space **Doors** section.

![Doors in Space](images/doors-in-space.png "Doors are synchronized to the Space 'Doors' section")
{.border}

Initially, all doors are synchronized as offline.

![Offline doors in Space](images/offline-doors-space.png "Doors are synchronized as offline to start with")
{.border}

You have to then manually define them as either **online** or **offline** in the drop-down **Connection type** option of Space, as indicated below.

![Defining online doors in Space](images/manual-online-doors.png "Doors have to be manually defined as online")
{.border}

## Mapping doors and access levels {#mapping-doors-and-access-levels}

In OnGuard, in "Access Level Staff" you can see the doors created (For example, Lenel S2 Reader, TEST YSA, XS4 Mini - Meeting Room, XS4 Original+).
(Note that in OnGuard a "reader" is the equivalent to a "door" in Space.)

![Mapping doors and access levels](images/mapping-doors-access-levels.png "Mapping doors and access levels")
{.border}

This is then transferred to the Space **Zones** > **Access points** section:

![Space access points](images/space-access-points.png "Space access points")
{.border}

## Timezones {#timezones}

You can create custom access timezones in OnGuard that are then transferred to Space as [cardholder timetables](/space/user-guide/operator/cardholders/cardholder-timetables).

![OnGuard timezones](images/onguard-timezones.png "OnGuard timezones")
{.border}

![Space cardholder timetables](images/space-cardholder-timetables.png "Space cardholder timetables")
{.border}

Door timezones can then be moved from **Always** to a custom timezone.

![OnGuard timezone Always](images/timezones-always.png "OnGuard timezones set as 'Always'")
{.border}

![OnGuard timezone custom](images/timezones-custom.png "Custom OnGuard timezones")
{.border}

These custom OnGuard timezones are then transferred to the Space cardholder timetables section.

![Space custom timetables](images/space-custom-timetables.png "Custom OnGuard timezones transferred to the Space cardholder timetables section")
{.border}

{{% info-panel %}}
Only the OnGuard access levels (zones in Space) are synchronized with doors that have the same timetable.
If one of the individual doors has a different timetable from the others, the zone will not be transferred to space.
{{% /info-panel %}}

## Events, status and monitoring {#events-and-monitoring}

In the OnGuard **Alarm monitoring** section, you can see the systems status for door monitoring and the main alarm monitor which displays [events that have been collected in Space](/space/user-guide/operator/monitoring/online-monitoring).

![Alarm monitoring in OnGuard](images/alarm-monitoring.png "Alarm monitoring in OnGuard")
{.border}

From connector version 2.5.2 onwards, new events are also added to the connector such as "Door left open" and "Intrusion alarm".
This means these alarms will be mapped from Space to OnGuard.
In the below example, "Door Forced Open" is the equivalent to "Intrusion alarm" in Space.

![Door Forced Open event in OnGuard](images/door-forced-open.png "'Door Forced Open' in OnGuard is the equivalent to 'Intrusion alarm' in Space")
{.border}

And "Door Held Open Restored" is the equivalent to "DLO (Door Left Open)" in Space.

![Door Held Open Restored event in OnGuard](images/door-held-open-restored.png "'Door Held Open Restored' event in OnGuard")
{.border}

These following events are also transferred to the door status in OnGuard alarm monitoring.

### Intrusion {#intrusion}

This intrusion of an online door in Space is displayed in OnGuard as "forced" in alarm monitoring in real time.

![Intrusion in alarm monitoring](images/intrusion-forced.png)
{.border}

### Door left open {#door-left-open}

The "Door left open" event of an online door in Space is displayed in OnGuard as "held" in alarm monitoring in real time.

![Door Left Open - held in alarm monitoring](images/door-left-open-held.png)
{.border}

### Locked {#locked}

In [standard mode](/space/user-guide/operator/access-points/opening-modes#door-opening-modes), if the lock is online (communicating) and locked, the status "locked" is displayed in OnGuard.

![Access mode locked](images/access-mode-locked.png)
{.border}

{{% info-panel %}}
Only events from doors synchronized between OnGuard and Space are synchronized.
If the event related to the door is not linked with a user synchronized between OnGuard and Space, the event is sent without a cardholder (empty).
{{% /info-panel %}}

{{% info-panel %}}
Doors marked as yellow are online doors which are not communicating temporarily.
{{% /info-panel %}}

## Remote opening {#remote-opening}

You can carry out remote openings in OnGuard for the corresponding doors in Space.
See the below example for where to find this option in the OnGuard interface.

![Remote opening example](images/remote-opening-mapping.png)
{.border}

