# How to allow keyholders to remotely lock and unlock doors in Salto Homelok
> Learn how property managers and unit managers can let keyholders remotely lock and unlock doors from their app key in Salto Homelok.


## Overview {#overview}

By default, **owners** and **property managers** can [remotely lock and unlock online doors](/homelok/user-guide/property-manager/doors/create-doors#remote-unlocking) from Homelok web or the Homelok app.
They need the correct access to the door, and the door must be online and connected.
Remote locking also requires a motorized lock.

This section describes settings that let you extend remote locking and unlocking to **unit managers** and **keyholders**, using their {{< glossary_term "app_key" >}}app key{{< /glossary_term >}}.
A user must have an app key assigned to use this feature: see the [section on assigning keys](/homelok/user-guide/property-manager/users/assign-keys#app-keys) for more information.

To enable remote locking and unlocking for a keyholder's app key, both of the following settings must be configured:

1. An **Allow remote operations** setting on the door, which determines if remote actions are allowed at that door.
2. An **Allow remote operations** setting on the user's app key, which determines if that user is allowed to trigger remote actions.

![Remote operations settings for doors](images/allow-remote-operations.png "First enable the 'Allow remote operations' setting on the door")
{.border}

![Remote operations settings for app keys](images/remote-operations-app-key.png "Next, enable the 'Allow remote operations' setting on the user's app key")
{.border}

## How the door and app key settings interact {#how-settings-interact}

The ability to lock or unlock doors depends on the model of the lock.
For example, a motorized lock like the DLok can be both locked or unlocked.
In Homelok, these settings display as a single **Allow remote operations** checkbox on both the door and the user's app key.
Enabling the checkbox permits remote operations, subject to the user's access, door connectivity and supported lock hardware.
Disabling it disallows both.

| App key allows | Door allows | Result |
| --- | --- | --- |
| Nothing | Nothing | Blocked |
| Remote operations | Nothing | Blocked: the door doesn't allow it |
| Nothing | Remote operations | Blocked: the app key doesn't allow it |
| Remote operations | Remote operations | Allowed, subject to access, connectivity and supported hardware |

This lets you combine settings to fit real scenarios.
For example, a unit manager could allow a user in their unit to remotely unlock doors (a member of their family) while not allowing another (a delivery person or maintenance worker).
On the other hand, a property manager could allow remote unlocking for a building's main entrance but not for a shared pool gate.

{{% info-panel %}}
For a keyholder, this process is seamless.
When both settings are enabled, users with the correct door access can operate it even when not within Bluetooth range, as long as the door is online and connected.
Remote locking requires a motorized lock.
Note that keyholders will always be asked for confirmation before performing a remote operation from the Homelok app.
{{% /info-panel %}}

<!-- TODO: Add link when ready
See also the section on locking and unlocking for more details.
-->

## Door setting {#door-setting}

Each door has an **Allow remote operations** checkbox, where the lock permits this (it must be online and connected for the functionality to work).
This setting determines whether the door allows remote locking and unlocking by users other than owners and property managers.

![Door settings with remote operations enabled](images/door-remoted-enabled.png "Once enabled, the door's settings indicate that remote operations are allowed")
{.border}

You can find this option in the door's settings, alongside options like [**Opening mode**](/homelok/user-guide/property-manager/doors/create-doors#opening-mode) and [**Card key updater**](/homelok/user-guide/property-manager/doors/create-doors#card-key-updater).

{{% info-panel %}}
The **Allow remote operations** checkbox is disabled by default for both installation and unit doors.
{{% /info-panel %}}

Owners and property managers do not need this door setting enabled.
They still need the correct door access, an online and connected door, and supported hardware for the requested operation.
Remote locking requires a motorized lock.

## App key setting {#app-key-setting}

Once a door has the **Allow remote operations** setting enabled, you can allow individual keyholders to remotely lock and unlock it from their app key.

To do this, go to the user's profile and open the **Manage keys** panel described in the [section on assigning keys](/homelok/user-guide/property-manager/users/assign-keys#app-keys).
Beside the **App key** option, enable the **Allow remote operations** setting for that user.

![Remote enabled label for app key](images/remote-enabled.png "When you enable remote operations on a user's app key, the 'Remote enabled' label indicates that the setting is active.")
{.border}

Whether this setting is available, and its default value, depends on the type of user:

| User type | Configurable | Default |
| --- | --- | --- |
| Installation user | Yes | Disabled |
| Unit user | Yes | Disabled |
| Unit manager | No | Always enabled |

{{% info-panel %}}
Remote operations are always enabled on a unit manager's app key and can't be
turned off.
{{% /info-panel %}}

## Unit privacy considerations {#unit-privacy-considerations}

Remote-operation permissions work the same way in a unit with
[privacy](/homelok/user-guide/property-manager/units/privacy) enabled as in any
other unit. Because a unit manager's app key always allows remote operations,
they need the door setting enabled as well as the correct door access, connectivity and supported hardware.

Remote lock and unlock activity in a private unit isn't visible to the property
manager or owner, in the same way as other unit activity.

