# Time-Limited Access

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2FQHDtnSZ0SvLnRf7E6678%2FTime-Limited%20Access%20(2).jpeg?alt=media&#x26;token=af2ca799-b6e2-4bcf-b3d5-b3938281dc01" alt=""><figcaption></figcaption></figure>

## Overview

Time-Limited Access allows you to securely share credentials, secrets or PAM Resources like machines, databases and directories - with other Keeper users on a temporary basis, automatically revoking access at a specified time. Time-Limited Access prevents long standing privileges and ensures that information is removed from the recipient’s vault, greatly reducing the risk of unauthorized access.

{% embed url="<https://vimeo.com/930338779>" %}
Time-Limited Access
{% endembed %}

## **Key Benefits**

* Revoked access at a specified time designated by the record owner, minimizing the workload on the owner to remove the share at a later time.
* Enhances security as traditional short term sharing has been done in insecure ways like using sticky notes, text messages or instant messengers.
* Simplified compliance with event tracking on all sharing activity, ensuring least privilege access is maintained.
* When paired with [KeeperPAM](https://app.gitbook.com/o/-LO5CAzoigGmCWBUbw9z/s/-MJXOXEifAmpyvNVL1to/) or Keeper Secrets Manager (KSM) [automatic service account rotation](https://docs.keeper.io/keeperpam/privileged-access-manager/password-rotation/rotation-overview) capabilities, users can schedule rotation of the shared credential upon the expiration of access, ensuring the recipient never has standing privilege.

## Share a Record

Select the record from your vault and click **Share**, entering their email address or selecting it from your contacts list. Set their permission level and click **Add**.

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2FBlYcwENLLmqcoq52XSxC%2FScreen%20Shot%202024-02-21%20at%2011.24.44%20AM.png?alt=media&#x26;token=6683d10b-91d9-405a-990c-5c3d62758b96" alt=""><figcaption><p>Share a Record</p></figcaption></figure>

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2FLy5BJNgQtrJ7OysD8nKz%2FScreen%20Shot%202024-02-21%20at%2011.46.20%20AM.png?alt=media&#x26;token=4c9c4007-0280-4b5f-ae59-3bdc18115106" alt=""><figcaption><p>Add User and Set Permissions</p></figcaption></figure>

Select the “Permissions” dropdown and click **Set Expiration**. Here you can select one of the default expirations or click **custom date and time** to set your own. Next, check the box if you would like the record owner, such as yourself, or users with edit access to be notified via email when the recipient's record access expires. Click **Done** to save.

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2F4RirarbhoLXwhKoKHySk%2FScreen%20Shot%202024-02-21%20at%2011.26.15%20AM.png?alt=media&#x26;token=1faa1b47-75f0-4938-8a28-45dbfbd5b15f" alt=""><figcaption><p>Permissions and Option to Add Expiration</p></figcaption></figure>

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2F3Ih8n3tLtbfAY4AeZUDh%2FScreen%20Shot%202024-02-21%20at%2011.27.46%20AM.png?alt=media&#x26;token=f186645a-3884-4e95-99f8-e78c9189d2cf" alt=""><figcaption><p>Set Expiration and Email Notification</p></figcaption></figure>

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2Feo62o7MaXze71MKXQBFN%2FScreen%20Shot%202024-02-21%20at%2011.40.32%20AM.png?alt=media&#x26;token=eb32f162-d252-40db-a60b-76e402508de5" alt=""><figcaption><p>Access Expiration Applied to User</p></figcaption></figure>

{% hint style="info" %}
The recipient of a shared record with time-limited access may have "view" and "edit" permissions but will not be able to share the record. If "share" permissions are applied, the expiration will be removed.
{% endhint %}

## Share a Folder

Open the shared folder from your vault and click the **edit icon** and from the “Users” tab, add the user or team you would like to share the folder with.

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2FQIdwlaQbAyEofV9kfkbJ%2FScreen%20Shot%202024-02-21%20at%2011.31.19%20AM.png?alt=media&#x26;token=0aebf40e-1af9-4650-ad24-7bcc3461ca46" alt=""><figcaption><p>Edit Shared Folder</p></figcaption></figure>

Set their permissions and from the dropdown menu click **Set Expiration**, following the same steps you would for a single record share (described above).

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2FsjgXEFkitbLQU4lIBitb%2FScreen%20Shot%202024-02-21%20at%2011.50.17%20AM.png?alt=media&#x26;token=3a586076-2310-4508-ae74-6dd3d5447dbb" alt=""><figcaption><p>Permissions and Option to Add Expiration</p></figcaption></figure>

Next, check the box if you would like users with "can manage records" permissions over the folder to be notified via email when the recipient's record access expires. Click **Done** to save.

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2FLi5Pny7sqMUrxRb9cRU6%2FScreen%20Shot%202024-02-21%20at%2011.39.49%20AM.png?alt=media&#x26;token=aafa15d2-313a-483c-90f7-3b6b6a08e72c" alt=""><figcaption><p>Set Expiration and Email Notification</p></figcaption></figure>

{% hint style="info" %}
The recipient of a shared folder with time-limited access may have "can manage records" permissions, but the ability to "manage users" is restricted. If these permissions are applied, the expiration will be removed.
{% endhint %}

### Sharing PAM Resources

When sharing access to PAM Resources (such as a Windows or Linux server), privileged sessions can be established to the target resource, without access to the credentials. When access is revoked, the session is terminated and session logs are created for the administrator.

<figure><img src="https://4290574019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LO5CAzpxoaEquZJBpYz%2Fuploads%2FaK8wbO7Mw7VU1ZPDqG9y%2FScreenshot%202025-05-27%20at%207.40.25%E2%80%AFPM.png?alt=media&#x26;token=3cc25203-839b-4d72-97a9-36852a30ee0f" alt=""><figcaption><p>KeeperPAM time-limited sessions</p></figcaption></figure>

For more information about PAM sessions and permissions, see the [KeeperPAM](https://app.gitbook.com/o/-LO5CAzoigGmCWBUbw9z/s/-MJXOXEifAmpyvNVL1to/) documentation.

### Time-Limited Access With Keeper Commander

Manage time-limited access on records and folders programmatically using the Keeper Commander CLI and SDK. Relevant commands:

* [`share-record`](https://docs.keeper.io/keeperpam/commander-cli/command-reference/sharing-commands#share-record-command) with `--expire-at` and `--expire-in` switches
* [`share-folder`](https://docs.keeper.io/keeperpam/commander-cli/command-reference/sharing-commands#share-folder-command) with `--expire-at` and `--expire-in` switches

For more information see our [Keeper Commander](https://docs.keeper.io/en/enterprise-guide/commander-cli) documentation.
