---
updatedAt: 2026-09-16T02:21:39.000Z
---

# Discovery | PRA On-prem

## What is discovery in Vault?

Discovery in Vault refers to the process of scanning and importing privileged credentials from external sources, such as Active Directory or local accounts, into BeyondTrust Vault. This process can be done manually or through the built-in discovery tool.

## How is discovery useful in Vault?

Discovery simplifies credential management by automatically finding and importing privileged credentials into Vault. This ensures that credentials are securely stored and centrally managed, enhancing security and reducing the risk of manual errors in credential handling.

## How do I access the Discovery page?

1. Use a browser to sign in to your Privileged Remote Access URL.\
   This URL is provided in the BeyondTrust welcome email and includes your site URL followed by **/login**.
2. From the left menu, click **Vault**.\
   The **Accounts** page opens and displays by default.
3. At the top of the page, click **Discovery**.\
   The **Discovery** page displays.

## Initiate a discovery job

1. From the left menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.

2. Click the **Discovery** tab.\
   The **Discovery** tab displays.

3. Click **New Discovery Job**.\
   The **Discovery: New Job** page displays.

4. You have the following four options to choose:

   * **Windows Domain**
   * **Local Windows Accounts on Jump Clients**
   * **AWS Secrets**
   * **Password Safe**

> ℹ️
>
> * The **AWS Secrets** and **Password Safe** options are only available in version 25.2 and above.  For more information on how to configure AWS Secrets or Password Safe, see [Discovery of AWS Secrets](#discovery-of-aws-secrets) or [Discovery of Password Safe](#discovery-of-password-safe).
> * The **Local Windows Accounts on Jump Clients** option only displays if you have the **Jump Clients** permission located in **Users & Security > Users > Access Permissions > Jump Technology**. If you have any issues, contact your site administrator.

5. Select **Windows Domain** (default value), and then click **Continue**.\
   The **Discovery:  Windows Domain** page displays.

6. You are presented with the option to select a new or existing domain to discover. The default value is **New Domain**, select **Add a New Domain**. If a domain does exist, select **Existing Domain** and select from the dropdown.

7. For **DNS Name of the Domain**, enter a valid fully qualified DNS name for the domain you are performing the discovery action on.

8. For **Gateway**, enter a valid Gateway.
   > ℹ️
   >
   > Discovery is currently supported on Windows Gateways.

9. For **Management Account**, select either **New Account** (default value) or **Existing Account**.

   <Accordion title="New Account">

   - **Username:** The valid username of a domain. For example, **[username@domain.com](mailto:username@domain.com)**.
   - **Password:** The password of the account.
   - **Confirm Password:** Confirmation password of the account.

   </Accordion>

   <br />

   <Accordion title="Existing Account">

   - **Search for an account:** Type the name of an existing account.

   </Accordion>

   <br />

   > ℹ️
   >
   > * This account is used to connect and perform the discovery of accounts and endpoints of the specified domain.
   > * This account should be a functional account and only requires password change and reset permissions.

10. Click **Save and Continue**.

## Define the discovery scope

1. Select the types of objects you wish Vault to discover:

   * Domains Accounts
   * Endpoints
   * Local Accounts
   * Services

> ℹ️
>
> Discovery of **Services** is available only if **Domain Accounts**, **Endpoints**, and **Local Accounts** are selected. Only Windows service accounts are discovered.

2. Enter a **Search Path**, or leave it blank to search all OUs and containers.
3. Click **Browse** to refine your search by specifying which OUs to target.
4. Use the **LDAP Query** field to narrow the scope of user accounts and endpoints searched.
5. Once the scope is defined, click **Start Discovery**.

> ✅ Tip
>
> The discovery process can take some time. While discovery is underway, the **Discovery Progress** page appears and tracks the number of accounts and endpoints discovered.

## Import discovered endpoints, accounts, and services

Once the discovery job is complete, a **Discovery Results** page appears.

You can switch between the **Endpoints**, **Local Accounts**, **Domain Accounts**, and **Services** tabs to view the discovered items and import them. When you import items, they are saved for later use in your Vault.

* **Endpoints:** Shows the **Name** and **Description** of the endpoints discovered, as well as their **Operating System** and **Distinguished Name**.
* **Local Accounts:** Shows the **Username**, **Endpoint** (system associated with account), **Description**, **Last Login Date**, **Password Age**, and **Status** for all discovered local accounts.
* **Domain Accounts:** Shows the **Username**, **Distinguished Name**, **Description**, **Last Login Date**, **Password Age**, and **Status** for all discovered domain accounts.
* **Services:** Shows the **Display Name (Description)** (name displayed in Services snap-in), **Short Name** (name used by Service Controller command line tool, **Endpoint** (system where service is used) , and **Username** (account used to run the service) for all discovered service accounts.

> ℹ️
>
> Only services that use an account other than a built-in account to run are returned in the discovery results.
>
> The user must have permission to use Remote RDP Jump Technology in order to import discovered endpoints.

## Import selection

From the **Discovery Results** page, to import discovered items follow these steps:

1. Choose any of the tabs: **Endpoints**, **Local Accounts**, **Domain Accounts**, or **Services**.
2. Select the items you wish to import, and then click **Import Selected**.

> ℹ️
>
> You can filter the list of items based on their attributes using the filter box above the grid. For each tab, click the **i** next to the filter box to see which attributes can be searched.

3. The **Import Discovered Items** page appears, listing the number of endpoints, accounts, and services selected for import. If importing endpoints and services, select a **Asset Group** from the list or select the **Do not create Asset** option. If importing accounts, select an **Account Group** from the list.
4. Click **Start Import**.
5. A status page appears, indicating the import completed successfully, and lists the number of endpoints, accounts, and services imported. You can click the links to view the specific items that were imported. Click **Done Importing** to close the status page.

Upon successful import, the accounts, endpoints, and services are listed  on the **Accounts**, **Endpoints**, and **Services** pages in **Vault**.

On the **Accounts** page, the endpoints associated with the shared accounts are indicated for each account, and if the account is used to run a Windows service, this is indicated in the **Status** column.

On the **Endpoints** page, the number of accounts, Assets, and services associated with each endpoint is indicated. You can view the specific associated accounts, Assets, and services when you click the links.

> ℹ️
>
> For imported endpoints, RDP Jump shortcuts are created with an automatic association to local accounts.
>
> For more information about Gateways, see the [Gateway guide](jumpoint).
>
> Click the **Select visible columns** button ![Image of the Column Selector icon.](https://files.readme.io/6ef4c51c8e726bdac3d31f0353dc6c27a8faedb0db90cc47af1bb8bf1772c980-image.png) above the grid to customize the columns displayed in the grid.

Non-domain linked endpoints can be associated with RDP items for improved security and user experience. To create the association, follow these steps:

1. Click **Assets** on the **Endpoints** screen.
2. Click **Add** and select **Add Remote RDP Asset** or **Associate Existing RDP Assets**.
3. If associating an existing shortcut, click the shortcut(s) to add, and then click **Associate Selected**.

On the **Services** page, the endpoints and accounts associated with each service are indicated, as well as the last status of the service. Also, from the **Services** page, you have the option to restart the service upon rotation of the service account by checking the **Restart** box for the service.

## Initiate a discovery job for an existing domain

Discovery jobs can be initiated on domains that have already been added or imported to BeyondTrust Vault. You can initiate a discovery job from the **Vault > Domains** page and from the **Vault > Discovery** page.

### Initiate discovery job from the Domains page

1. From the left menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.

2. Click the **Domains** tab.\
   The **Domains** page displays.

3. From the **Domains** list, select a domain.

4. Click the **Discover** button ![Image of the  Discovery icon](https://files.readme.io/605f13854d5c41b7c0b5707e14c8e7d7b3582d2bf53462bfc97e6328a9757cc6-image.png) for the domain.

5. Define the scope of the discovery, and then click **Start Discovery**.

6. Select the items to import from the discovery results and start the import.

### Initiate discovery job from the Discovery page

1. From the left menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.

2. Click the **Discovery** tab.\
   The **Discovery Jobs** page displays.

3. Click **New Discovery Job**.\
   The **Discovery: New Job** page displays.

4. Leave the default **Windows Domain** option selected, and then click **Continue**.

5. Select **Existing Domain**.

6. Select the domain from the dropdown list.

7. Click **Continue with Existing Domain**.

8. Define the scope of the discovery, and then click **Start Discovery**.

9. Select the items to import from the discovery results and start the import.

## Schedule discovery jobs

Discovery jobs can be scheduled to run on defined days and times, avoiding the need for manually initiating new jobs on regularly updated workspaces.

### Schedule discovery job for a new domain

1. From the left menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.

2. Click the **Domains** tab.\
   The **Domains** page displays.

3. Click **Add**.

4. For **DNS Name of the Domain**, enter a valid fully qualified DNS name for the domain you are performing the discovery action on.

5. For **Gateway**, enter a valid Gateway.
   > ℹ️
   >
   > Discovery is currently supported on Windows Gateways.

6. For **Management Account**, select either **New Account** (default value) or **Existing Account**.

   <Accordion title="New Account">

   - **Username:** The valid username of a domain. For example, **[username@domain.com](mailto:username@domain.com)**.
   - **Password:** The password of the account.
   - **Confirm Password:** Confirmation password of the account.

   </Accordion>

   <br />

   <Accordion title="Existing Account">

   - **Search for an account:** Type the name of an existing account.

   </Accordion>

   <br />

   > ℹ️
   >
   > * This account is used to connect and perform the discovery of accounts and endpoints of the specified domain.
   > * This account should be a functional account and only requires password change and reset permissions.

7. Click **Save and Continue**.

8. Set the options in the **Scheduled Domain Discovery** section.

9. Click **Save**. The discovery job runs on the days and time you specify.

10. To import items discovered from a scheduled job:

    1. From the left menu, click **Privileged Remote Access** > **Vault**.\
       The **Vault** page opens and the **Accounts** tab displays by default.

    2. Click the **Discovery** tab.\
       The **Discovery Jobs** page displays.

    3. Locate the completed scheduled job. (Scheduled jobs are indicated as being performed by System.)

    4. Click **View Results** for the completed job.

    5. Import selected items.

### Schedule a discovery job for an existing domain

1. From the left menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **Domains** tab.\
   The **Domain** page displays.
3. Click the pencil icon to edit an existing domain from the list.
4. From the **Scheduled Domain Discovery** section, click the **Enable Schedule Delivery** checkbox.
5. Select the days and time for the schedule.
6. Select the objects in the **Discovery Scope** section, and then click **Save**.

### DNS name of the domain

Enter the DNS name for your environment.

### Gateway

Choose an existing Gateway located in the environment where you wish to discover accounts.

### Management account

Select the management account needed to initiate the discovery job. Choose to use a new account, which requires a **Username**, **Password**, and **Password Confirmation** to be entered. Or, choose to use an existing account discovered from a previous job or added manually in the **Accounts** section.

### Username

Enter a valid username to use for discovery (username\@domain).

### Password

Enter a valid a password to user for discovery.

### Confirm password

Re-enter the password to confirm.

> ℹ️
>
> You can define which parts of a domain to run a **Discovery/Import** job. Once you select the required fields for a **Discovery Job**, you can refine the search by specifying which OU’s to target or entering LDAP queries.

### Discovery scope

Select the objects you wish Vault to discover:

* **Domain Accounts**
* **Endpoints**
* **Local Accounts**
* **Services**

You can enter a **Search Path**, or leave it blank to search all OUs and containers. You can also use an **LDAP Query** to narrow the scope of user accounts and endpoints searched.

## Discovery: Jump Client search criteria

Enter one or more search criteria to find active Jump Clients you'd like to use to discover local Windows accounts. All text field searches are partial and case-insensitive. Jump Clients that match all the search criteria will be displayed on the next page for you to select before discovery begins.

> ℹ️
>
> The following types of Jump Clients cannot be used for local account discovery and are not included in the search results:
>
> * Jump Clients that are currently offline or disabled
> * Jump Clients that are not running as an elevated service
> * Jump Clients that are installed in a domain controller

### Asset Groups

Administrators can search for Jump Clients via their Asset Groups and their attributes. If the user is not a member of any Asset Group, the **Asset Groups** selection section is grayed out and either a tool tip or note is shown indicating that user must be a member of at least one Asset Group to proceed with the Jump Client discovery process. This is similar to how domain discovery works when a user is not a member of a Gateway during discovery or not a member of an Asset Group when importing an endpoint.

You can search **All of Your shared Asset Groups** or **Specific Asset Groups**.

### Jump Client attributes

You can select one or more shared Asset Groups. Private Asset Groups are not supported.

One or more Jump Client attributes can be entered. If more than one search criteria is entered, only Jump Clients matching all criteria are used for discovery.

The following attributes can be used as search criteria:

* **Name:** The Jump Client's name as it appears in the **Name** column in the access console.
* **Hostname:** The Jump Client's hostname as it appears in the **Hostname/IP** column of the access console.
* **FQDN:** The Jump Client's fully qualified domain name, as it appears under the **FQDN** label of the Jump Client details pane in the access console.
* **Tag:** The Jump Client's tag as it appears in the **Tag** column of the Representative Console.
* **Public/Private IP:** The Jump Client's public and private IP addresses, as they appear under the **Public IP** label of the Jump Client details pane in the access console. Jump Clients whose IP address starts with the given search value will match.

Click **Continue** to initiate the discovery.

## Discovery: Select Jump Clients

This screen displays the Jump Clients that will be used in discovery. Select one or more and click **Start Discovery**.

## Discovery results

The results display a list of discovered **Endpoints** and **Local Accounts**. Select one or more and click **Import Select**.

## Import discovered items

A list of the selections you made displays.

### Account group

Select from which account group you want to import, then click **Start Import**. A warning display indicating this process cannot be stopped once it has started. Click **Yes** to proceed, or **No** to abort.

## Importing

A message displays indicating the import was completed successfully. A list of **Endpoints** and **Local Accounts** displays.

## Accounts

### Search shared/personal accounts

If you get an extensive list of accounts discovered, use the **Search** field to search accounts by **Name**, **Endpoint**, or **Description** (by **Name** and **Description** only for personal accounts).

Toggle between **Shared** and **Personal** accounts. Select one or more accounts. Click **...** to **Rotate Password**, **Edit** or **Delete** the account. You can also click **Rotate** at the top of the page to rotate the password for the select accounts.

## Discovery jobs

View discovery jobs that are in progress for a specific domain, or review the results of successful and failed discovery jobs.

### View results

Click **View Results** for a discovery job to view the **Discovery Results**, which includes discovered endpoints, local accounts, domain accounts, and services found in the domain.

You can filter the list of items based on their attributes using the filter box above the grid. For each tab, click the **i** next to the filter box to see which attributes can be searched.

Select which endpoints, accounts, and services to import and store in your BeyondTrust Vault instance. For each list item you wish to import, check the box beside it and click **Import Selected**.

## Discovery of AWS Secrets

Use discovery to locate AWS Secrets that are in AWS Secrets Manager.

### Prerequisites

* You must install a Gateway on an EC2 instance in an AWS environment.
* You must assign an IAM role to the EC2 instance that has the **IAMFullAccess** and **SecretsManagerReadWrite** permission.

### Initiate an AWS Secrets discovery job

1. From the main menu, click **Privileged Remote Access > Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.

2. Click the **Discovery** tab.\
   The **Discovery** tab displays.

3. Click **New Discovery Job**.\
   The **Discovery: New Job** page displays.

4. You have the following four options to choose:

   * Windows Domain
   * Local Windows Accounts on Jump Clients
   * AWS Secrets
   * Password Safe

5. Click **AWS Secrets**.

6. Click **Continue**.

7. For Gateway, select the AWS Gateway.
   > ℹ️
   >
   > Discovery of clustered Gateways only supports all nodes on EC2 instances in the same organization.

8. Click **Start Discovery**.

9. From the **Discovery Results** table, select the items you want to import.

[block:image]{"images":[{"image":["https://files.readme.io/01fe8bc6935d94901854e422d649c7e79a18b3e6868b6fb74677dc26e7f0d21f-AWS_Secrets_DiscoverResults.png","","Image of the Discovery Results table."],"align":"center","border":true}]}[/block]

10. Click **Import Selected**.

11. For **Account Group**, you can specific a particular group you want the results to reside, or select the **Default Group**.

12. Click **Start Import**.

13. Click **Yes** if the dialog box says "This process cannot be stopped after it is started. Are you sure you want to continue?"

14. Click **Done Importing**.

15. From the **Vault > Accounts** page, click the **AWS Secrets** tab to display the AWS Secrets table.

### Checkout an account

1. From the main menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.

2. Click the **AWS Secrets** tab.

3. From the **AWS Secrets** table, select the account you want to checkout. The user must have **Inject And Checkout** Vault role, otherwise the **Checkout** button in step 4 does not display.

[block:image]{"images":[{"image":["https://files.readme.io/f0b22c44d4516067259fe3cfd9520f0c292dd4af17807eec7ccee75cace76b9a-InjectionRole_Vault.png","","Image of the Vault Account Role section with Inject and Checkout selected."],"align":"center","sizing":"40% ","border":true}]}[/block]

4. Click **Checkout** ![Image of the Checkout icon](https://files.readme.io/d7ffb7cdff4dd8fe19c71851f865b4fb17c9675c970e079903df1d31d011c04c-CheckOUT.png).

5. The **AWS Secret** dialog box displays.\
   You can either view the secret ![Image of the View Secret icon.](https://files.readme.io/a61c23c19c3ea9817087708e50441cd8276e3e70f58ba88d4fab9f72fc5a1266-image.png), copy the secret ![Image of the Copy Secret icon](https://files.readme.io/e82fe25437a5648c0dddd57bbe8ad89500922274d084a77ee03296ba92fcc7fb-image.png), or download the secret by clicking the **Download Secret** button.

[block:image]{"images":[{"image":["https://files.readme.io/08b340670fdd0cb3b6cfb2486da28b25e3d84a63ba3a146ba51c37097426f95c-AWS_Secrets_Checkout.png","","Image of the Download Secret button."],"align":"center","sizing":"40% ","border":true}]}[/block]

6. After you make your selection, click **Close**.

In the **Status** field of the AWS Secrets table, it displays that item is checked out.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/a085810239d632ce0e170eb3f2097668210c387bf6424be936cb6a016c96ba53-AWS_Secrets_Checkout1.png",
        "",
        "Image of the Checked Out status."
      ],
      "align": "center",
      "sizing": "15% ",
      "border": true
    }
  ]
}
[/block]

### Rotate Secrets

From the main menu, click **Privileged Remote Access** > **Vault**.\
The **Vault** page opens and the **Accounts** tab displays by default.

1. Click the **AWS Secrets** tab.

2. From the **AWS Secrets** table, select the account you want to rotate.

3. Click **Rotate** or select the horizontal ellipsis from the row in the table and select **Rotate Secret**.\
   The **Rotate Summary** displays.

[block:image]{"images":[{"image":["https://files.readme.io/7b4c33bab4eb04ac47d3e69b8ca87ffa9c3112cd3dacd23330eda9ba2c93554d-AWS_Secret_Rotate.png","","Image of the Rotate Secret option"],"align":"center","sizing":"20% ","border":true}]}[/block]

4. Click **Start Rotation**.

In the **Status** field of the **AWS Secrets** table, it displays that the item is in rotation.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/52ede44b73a5fc3f3c59e8c1546fbe7914ac1beb2c1b84c1c858343d090585e5-AWS_Secrets_Rotation.png",
        "",
        "Image of the Status field with a status of Rotation in Progress."
      ],
      "align": "center",
      "sizing": "15% ",
      "border": true
    }
  ]
}
[/block]

Once rotation is complete, the **Password Age** information updates with a time stamp of *a few seconds*.

> ℹ️
>
> A Lambda function is needed for rotate secrets to work.

### Edit Secrets

1. From the main menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **AWS Secrets** tab.
3. From the **AWS Secrets** table, select the account you want to edit.
4. Click **Edit**.
5. Make the necessary changes and click **Save**.
   > ℹ️
   >
   > You cannot make changes to the **Name** field. Changes to imported accounts must be made in the originating system and will be reflected after re-discovery.

### Delete Secrets

1. From the main menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **AWS Secrets** tab.
3. From the **AWS Secrets** table, select the account you want to delete.
4. Click **Delete**.
5. A confirmation dialog box displays, click **Yes**.

### Credential injection of AWS Secrets account

**AWS Secrets** accounts are available for injection into matching Jump Clients from the representative console.  At the time of injection, the **Credential Store** dialog box displays.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/a8a51cc2534f9718ff848b8c2ac05a2cf4a52affd0abfc47a728099ae068b421-password_safe_discovery_RDP_Credential.png",
        "",
        "Image of the Credential Store dialog box."
      ],
      "align": "center",
      "sizing": "30% ",
      "border": true
    }
  ]
}
[/block]

1. For the **Credential Store** option, click the dropdown and select the appropriate AWS Secrets account.

2. Click **OK**.

3. To view all the AWS Secrets accounts available for credential injection, click the **Vault** tab at the top of the screen.

4. In the **Search** bar, enter **AWS Secret**.\
   A list of only AWS Secret account displays.

5. Users with the **Inject and Checkout** role can also select an AWS Secret account from the list and choose the appropriate option of **Check In** or **Check Out**.

[block:image]{"images":[{"image":["https://files.readme.io/cfad3dd33ae2a7de6ba247e702ee956d9d370da1178a947bb7b9c3c4847ebbe4-injectionConsole.png","","Image of the Check In and Check Out options."],"align":"center","border":true}]}[/block]

## Password Safe Discovery

You can use Vault to discover and import Managed Accounts and Managed Systems from your Password Safe instance.

> ℹ️
>
> The direct integration with Password Safe supports all credential types, with the exception of Application and Kubernetes credentials.  To import these credentials, continue using the ECM-based integration. Endpoint discovery and import are available for SSH, web, database, and Windows systems.

## Manual Import

### Prerequisites

* A valid commercial CA-signed SSL certificate.
* An API registration for the SRA appliance IP address in the **Authentication Rules**.
* A user must be chosen or created to be used as the impersonating user. The impersonating user must be in a user group with the following properties:
  * For **Features**: Password Safe Account Management and Password Safe System Management (read-only).
  * Assigned access to the API registration for the SRA appliance IP address. This is used as a connection in SRA.
  * Any Managed Account Smart Groups added to the user group for import must have the Password Safe **Requestor** role with an access policy assigned that has a 24x7 schedule and view password set to auto-approve.
* To import domain-linked accounts, the domain account must be linked to the asset.

### Create connection

Start by creating a connection between the SRA site and Password Safe. Most of the information entered in this step comes from Password Safe; ensure you have that information on hand. To do this, follow these steps:

1. From the main menu, click **Privileged Remote Access > Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **Connections** tab.\
   The **Password Safe Connections** page displays.
3. Click **Add**.
4. For **Name**, type a unique name to help identify this role. **This is a required field**.
5. For **Password Safe Host**, type the name of the Password Safe Host. **This is a required field**.
6. For **API Key**, copy the information from the **Key** field in Password Safe for the API registration you created and paste it into the **API Key** field in PRA. **This is a required field**.
7. For **Impersonating Username**, select a valid username from one of the following groups: Password Safe's Administrators, Global Approvers, or Secure Remote Access Requestors. **This is a required field**.
8. **Impersonating Username Password** is determined by the **User required password** checkbox on the API registration from Password Safe. If the checkbox is not selected, then no password is required for this field in PRA. If the checkbox is selected, then use the password associated with the username on the Password Safe API registration and enter it in this field in PRA.

### Initiate a Password Safe discovery job

1. From the main menu, click **Privileged Remote Access > Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **Discovery** tab.\
   The **Discovery** tab displays.
3. Click **New Discovery Job**.\
   The **Discovery: New Job** page displays.
4. You have the following four options to choose:
   * Windows Domain
   * Local Windows Accounts on Jump Clients
   * AWS Secrets
   * Password Safe
5. Click **Password Safe**.
6. Click **Continue**.
7. For the **Password Safe Connection**, make sure a valid Password Safe connection exists. Select the connection. **This is a required field**.
8. Click **Continue**.\
   The **Discovery: Password Safe Scope** page displays.
9. Select the appropriate checkboxes you want to receive information for from Password Safe:

   * **Managed Accounts**

   * **Managed Systems**

[block:image]{"images":[{"image":["https://files.readme.io/224ec20dfbcf74ff3b7173a274faa39d7ddd987e0004ba1223bd264bb29329e0-password_safe_discovery_scope.png","","Image of the Discovery: Password Safe Scope with scope options."],"align":"center","border":true}]}[/block]

10. Click **Start Discovery**.\
    The **Discovery Progress** page displays.
11. From the **Discovery Results** table, select the items you want to import.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/4bd470e91b51abdcc9bb626eb2bfe034fdb9c1d6fb71672ec33d415bbbadd9fa-password_safe_discovery_results.png",
        "",
        "Image of the Directory Results table."
      ],
      "align": "center",
      "border": true
    }
  ]
}
[/block]

> ℹ️
>
> The **Workgroup Name** field is new.

12. Click **Import Selected**.\
    The **Import Discovered Items** page displays.

13. For **Account Group**, choose the account group that the selected **Managed Accounts** is associated with.

14. **Create one Asset per Managed System** is available when importing **Managed Systems** and a **Gateway** is available. Choose an **Asset Group** and **Gateway** to associate the created RDP Assets with when importing.  If you do not want to immediately create Assets for the imported **Managed Systems**, select **Do not create Asset**.

15. Click **Start Import**.

16. Click **Yes** in the following dialog box: "This process cannot be stopped after it is started. Do you want to continue?"

17. On the **Importing** page, the results of the **Managed Accounts** and **Managed Systems** display.

18. To view **Managed Systems**, click the **View Endpoints** link. This takes you to the **Vault > Endpoints** page.

[block:image]{"images":[{"image":["https://files.readme.io/a367ee20f2a3f5d474f8b1e9de31431db3e451601e5b802572a981d138e00a71-password_safe_discovery_importing_page.png","","Image of the Importing page with the View Endpoints link."],"align":"center","border":true}]}[/block]

19. To view **Managed Accounts**, click the **View Accounts** link.  This takes you to the **Vault > Accounts** page. The **Password Safe** table with **Managed Accounts** and **Managed Systems** displays.

[block:image]{"images":[{"image":["https://files.readme.io/a367ee20f2a3f5d474f8b1e9de31431db3e451601e5b802572a981d138e00a71-password_safe_discovery_importing_page.png","","Image of theImporting page with the View Accounts link"],"align":"center","border":true}]}[/block]

20. From the **Accounts** page, you can check out a Password Safe account ![Image of the Checkout icon.](https://files.readme.io/91f9c4c8e4af45c640b6b5477c4d4618e122de80bdb704ba5dcb992c6ce83572-image.png), edit a Password Safe account ![Image of the Edit icon](https://files.readme.io/c153cb37a84cbe52c6789e9cba1f6d2c58f95e3cd3e322ce37a268ece9b8037a-image.png), or delete a Password Safe account ![Image of the Delete icon](https://files.readme.io/a14e31a4cc316908c1a06310ba388fdfedbd9b7cf3c4073d98a8a9f45eb04dc0-image.png) from the Password Safe table.

> ℹ️
>
> * The option to rotate credentials does **not** exist in discovery of a Password Safe account.
> * There are two new fields: **System** and **Workgroup**.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/cf174010e428f380548aefba2bb58ffffcb289d7452455de12a2b4ba839b3df8-password_safe_discovery_table.png",
        "",
        "Image of the Password Safe Accounts table with the new System and Workgroup fields."
      ],
      "align": "center",
      "border": true
    }
  ]
}
[/block]

### Check out a Password Safe account

1. From the main menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.

2. Click the **Password Safe** tab.

3. From the **Password Safe** table, locate the account you want to check out. The user must have **Inject And Checkout** Vault role, otherwise the **Checkout** button in step 4 does not display.

[block:image]{"images":[{"image":["https://files.readme.io/078c6b3834f7040014862f71af1c5c4c1e73db166b6a55d487547987e4414c39-InjectionRole_Vault.png","","Image of the Vault Account Role with Inject and Checkout selected."],"align":"center","sizing":"40% ","border":true}]}[/block]

4. Click **Check Out** ![](https://files.readme.io/d7ffb7cdff4dd8fe19c71851f865b4fb17c9675c970e079903df1d31d011c04c-CheckOUT.png).\
   The **Account Password** dialog box displays. The password displays in plain text for one minute when you click **Reveal**.

[block:image]{"images":[{"image":["https://files.readme.io/716fecf268f8a2ca7984b07b31c5469fd7233bc911f1716d00e7090e5f4f87d9-AccountPasswordDialog.png","","Image of the Account Password dialog"],"align":"center","border":true}]}[/block]

5. To copy the displayed password, click **Copy**  ![Image of the Copy icon.](https://files.readme.io/22cede9826ca87f37c3bd2ec411da95cc6448430274a41fc4194e1b5b174c62e-AccountPassword_Copy.png).

> 🚧 Important info
>
> Credentials are sourced from Password Safe at time of Check Out and Check In.  No passwords are ever stored in the SRA Vault for Password Safe Accounts.

### Check out a Directory Linked account

1. From the main menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.

2. Click the **Password Safe** tab.

3. From the **Password Safe** table, locate the account you want to check out .

4. For the **Target Endpoint for Directory Linked Account Checkout**, ensure a valid endpoint exists in Password Safe.
   > 🚧 Important info
   >
   > **Directory Linked** accounts must be checked out against a **Managed System**. If the **Target Endpoint for Directory Linked Account Checkout** field is left blank in the **Connections** tab, the following error occurs on checkout:
   >
   > *System name is not configured for directory linked account checkout.*
   >
   > If the supplied endpoint name does not match a **Managed System** in Password Safe, or the account has not been linked to the **Managed System** in Password Safe, checkout fails with an error.
   >
   > This configuration is not necessary for **Credential Injection**.

5. Click **Checkout** ![Image of the Checkout icon.](https://files.readme.io/d7ffb7cdff4dd8fe19c71851f865b4fb17c9675c970e079903df1d31d011c04c-CheckOUT.png).\
   The Status column should display![Image of the Checked Out status.](https://files.readme.io/c08d2614e5a7307ddf8e7c4418eac06e4a828636263c8aaa9a7b004054e103a0-PasswordSafeCheckout.png).

6. To check in the account, click Check In ![Image of the Check In icon.](https://files.readme.io/319c8faa7015a34345fa8c0d2071a28e7865a6cf127c164ed62c89f3f03c6688-CheckIN.png).

### Edit a Password Safe account

1. From the main menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **Password Safe** tab.
3. From the **Password Safe** table, locate the account you want to edit.
4. Click the pencil ![Image of the Edit icon.](https://files.readme.io/a641a08923001a1b00eca7dc4036e6ef174087812e5b065c866eb90ea7ed6c5a-image.png) to edit.
5. Make the necessary changes and click **Save**.

### Delete a Password Safe account

1. From the main menu, click **Privileged Remote Access** > **Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **Password Safe** tab.
3. From the **Password Safe** table, locate the account you want to delete.
4. Click the trash can ![Image of the Delete icon.](https://files.readme.io/fe12ce42a5d7f736669bbffd6b85bad0d6fe17f0f9386a0b7ce045b6ef2acb33-image.png) to delete.
5. A confirmation dialog box displays. Click **Yes**.

### Credential injection of a Password Safe account

**Password Safe** accounts are available for injection into matching RDP Assets or Jump Clients.  At the time of injection, the **Credential Store** dialog box displays.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/a8a51cc2534f9718ff848b8c2ac05a2cf4a52affd0abfc47a728099ae068b421-password_safe_discovery_RDP_Credential.png",
        "",
        "Image of the Credential Store dialog box"
      ],
      "align": "center",
      "sizing": "30% ",
      "border": true
    }
  ]
}
[/block]

1. For the **Credential Store** option, click the dropdown and select the appropriate Password Safe account.
2. Click **OK**.
3. To view all the Password Safe Vault accounts available for credential injection, click the **Vault** tab at the top of the screen.
4. In the **Search** bar, enter **password safe**.\
   A list of only Password Safe account displays.
5. Users with the **Inject and Checkout** role can also select a Password Safe account from the list and choose the appropriate option of **Check In** or **Check Out**.

## Automatic import of accounts and endpoints

Vault administrators can automatically import selected domain accounts, endpoints, and local accounts using import rules after scheduled discovery runs using predefined filters. This reduces time and effort required for manual imports.

Automatic import jobs run in three phases:

* Matching phase
* Removal phase
* Import phase

If any rule in the batch fails during the matching or removal phases, all of the rules in that batch fail. However, if any rule fails during the import phase, this does not prevent other rules in the connection from running and completing their imports.

### Prerequisites

* Vault administrator privileges

### Create a Password Safe connection

Start by creating a connection between the SRA site and Password Safe. Most of the information entered in this step comes from Password Safe; ensure you have that information on hand. To create the connection:

1. From the main menu, click **Privileged Remote Access > Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **Connections** tab.\
   The **Password Safe Connections** page displays.
3. Click **Add**.
4. For **Name**, type a unique name to help identify this role. **This is a required field**.
5. For **Password Safe Host**, type the name of the Password Safe Host. **This is a required field**.
6. For **API Key**, copy the information from the **Key** field in Password Safe for the API registration you created and paste it into the **API Key** field in PRA. **This is a required field**.
7. For **Impersonating Username**, select a valid username from one of the following groups: Password Safe's Administrators, Global Approvers, or Secure Remote Access Requestors. **This is a required field**.
8. **Impersonating Username Password** is determined by the **User required password** checkbox on the API registration from Password Safe. If the checkbox is not selected, then no password is required for this field in PRA. If the checkbox is selected, then use the password associated with the username on the Password Safe API registration and enter it in this field in PRA.

### Create the Discovery Schedule

After the Password Safe connection is created, complete the **Scheduled Discovery** section to automatically import managed credentials and endpoints from Password Safe.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/b2ba45cf5466dbfe79fe288c61165c32dec84c0081fa98b2a3cc912d8d4ec787-scheduled_discovery.png",
        "",
        "Set discovery schedule"
      ],
      "align": "center"
    }
  ]
}
[/block]

1. In the **Scheduled Discovery** section, check the **Enable Scheduled Discovery** box.
2. Set the **Discovery Schedule**:
   * Set the day(s) discovery recurs on
   * Set the time the discovery recurs on
3. Select the **Discovery Scope**:
   * Managed Accounts
   * Managed Systems

### Create Password Safe import rules

Password Safe import rules determine how accounts and assets are imported after scheduled discoveries. Once import rules are created, they're owned and run by the system user in an automatic fashion. Imported Vault accounts, Vault endpoints, and any associated Assets associated with those endpoints are owned by that rule.

> ℹ️
>
> * Import rules are only executed automatically following a scheduled discovery. They do not run without one.
> * Up to 50 rules can be created per connection, with priority determining which rule applies if an account matches multiple criteria.

Once the connection and discovery schedule are created, create one or more import rules:

1. In the **Password Safe Import Rules** section, click **+Add Import Rule**.

[block:image]{"images":[{"image":["https://files.readme.io/8b7aac7f8fe45c59dfa3ce833d9b52e1f7d33026a6b00dedaa13f98d9a7f936e-image.png",null,"Image of the Add Import Rule button."],"align":"center"}]}[/block]

2. Under **Create Password Safe Rule**, add a **Rule Name**.

3. Set filters to define criteria for the import rule.

   > ℹ️
   >
   > * At least one filter is required per rule. Accounts and endpoints can both have up to 10 filters.
   > * Multiple filters use **And** logic, meaning the rule uses the first filter **and** any subsequent filters.

   * Check **Accounts** to add account filters to the rule.![Image of the Account Filters section](https://files.readme.io/79db0d72223ed17d55faf23393bead5dfec2f45d97a50bb030de4b7d90f1f900-account_filter.png)

     * Select a **Field** to filter by from the dropdown list.
     * Select an **Operator**.  Options include **Contains** and **Does not contain**.
     * Enter a value to filter by in the **Value** field. Add multiple values by typing and pressing **Enter** after each value.
       > ℹ️
       >
       > Multiple values use **Or** logic, meaning the filter looks for the selected field, operator, and value one **or** value 2, etc.
     * Select an option from the **Account Group to use if criteria are met** dropdown list. This defines the group that accounts matching filter criteria are imported into.
       > ℹ️
       >
       > * Once an account is imported, it cannot move between Account Groups unless an administrator moves it, or the account is removed and reimported. See the Important note below for more information.
       > * If there are overlapping rules (rules are matched on multiple rules), the account is only imported once, and assigned to the Account Group from the filter with the higher precedence at the time of import.
     * Click **+Add Filter** to add a new account filter.
     * Click ![](https://files.readme.io/ecaa8a12154834cbafac3bb354e90f48a467b32d872df479e1c6332ad05ae6ad-delete.png) to delete an account filter.
       > ❗️
       >
       > * If a manually imported account is matched on an import rule, the import rule takes ownership of that account, and the account is now considered an automatically imported account.
       > * Accounts imported via an import rule are automatically removed if, after a scheduled discovery, they no longer match any previously matched rules. The are also removed if the associated import rules are deleted. For example, if a previously imported account is deleted in Password Safe, it is not found in the next scheduled discovery, and when failed to match against an import rule, is removed from the system.
   * Check **System (Assets)** to add system filters to the rule.![Image of the System Filters section.](https://files.readme.io/eea4b08f32116ef017dcf4e984d6cef3b5881bd2102a08f0240443d8be3cfecc-system_filter.png)

     * Select a **Field** to filter by from the dropdown list.
     * Select an Operator.  Options include **Contains** and **Does not contain**.
     * Enter a value to filter by in the **Value** field. Add multiple values by typing and pressing **Enter** after each value.
     * Check the **Create Asset** box to create one remote RDP Asset per each of the imported systems. Select the **Asset Group** and **Gateway** to assign the Asset to.
       > ❗️
       >
       > Asset Groups and Gateways listed in the dropdowns are limited to those that the Vault administrator has access to. This only applies on rule set up. Once the rule is created, the rule is owned by the system and there is no permission check. The only exception occurs when a user clicks [Process Using Rules](https://docs.beyondtrust.com/pra/docs/on-prem-discovery#process-using-rules-outside-of-scheduled-discovery) manually. When a user clicks that button, they're running the job with the user's permissions. If the user doesn't have sufficient permissions to to modify Assets associated with that rule, the job will fail.
     * Click **+Add Filter** to add a new system filter.
     * Click ![Image of the Delete icon.](https://files.readme.io/ecaa8a12154834cbafac3bb354e90f48a467b32d872df479e1c6332ad05ae6ad-delete.png) to delete an account filter.

4. Click **Save** at the top of the page.

Once import rules are created, the next time a scheduled discovery runs, those rules run on that discovery, find all filter matches, and automatically import those matches.

Accounts, endpoints, and related Assets that no longer match a rule are automatically removed. This also applies when an administrator deletes a rule or connection, which grants the system permission to clean up items tied to those rules.

### View and Edit Password Safe import rules

To view or edit import rules associated with a connection:

1. From the main menu, click **Privileged Remote Access > Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **Connections** tab.\
   The **Password Safe Connections** page displays.
3. Locate a connection in the list.
4. Click ![Image of the Edit icon.](https://files.readme.io/0ae9d828544ca3d6050fd8a5d0d5b04b8369a4943633edbfdd630fc690b59a1b-Edit.png) to the right of the connection to view connection information.
5. Locate the import rules in the **Password Safe Import Rules** section at the bottom of the page.
6. Click ![Image of the Edit icon.](https://files.readme.io/0ae9d828544ca3d6050fd8a5d0d5b04b8369a4943633edbfdd630fc690b59a1b-Edit.png) to the right of the rule to view and edit information.
7. After changes are made, click **Save** at the top of the screen.

### Change order of import rules

Each rule in the list takes precedence over the rules below it.  To change the order of import rules:

1. Click the **Change Order** button.
2. Drag and drop rules in the order you wish to see them, or enter the order number in the field.
3. Click **Save Order** once updated.

### Process Using Rules outside of scheduled discovery

If you don't want to wait until the next scheduled discovery to automatically import matches, you can run those import rules by clicking the **Process Using Rules** button, located on the **Discovery Results** page. **Process Using Rules** always processes against the entire discovery, and not just against items that haven't been imported.

1. From the main menu, click **Privileged Remote Access > Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **Discovery** tab.\
   The **Discovery Jobs** page displays.
3. Locate a manual discovery in the list.
4. Click **View Results** to the right of the discovery.\
   The **Discovery Results** page displays.
5. Click **Process Using Rules** at the top of the page.
6. A confirmation dialog box displays. Click **Yes**.\
   The Discovery Jobs page displays.
7. Locate the discovery job in the list.
8. Click **View Results** to the right of the discovery.\
   The **Discovery Results** page displays.
9. Click the **Automatic Import Jobs** tab to view jobs run against that discovery. Each import rule has a corresponding job in the results list and includes information associated with that job.
   > ℹ️
   >
   > The **Status** column lists the status of the job, including Pending and Complete statuses.  If a status of Error displays, hover over the status to view the reason for the error.
   >
   > When a rule fails or aborts, no action is taken on existing accounts or endpoints at the point of failure.  If the error occurs during matching and removal, they are not removed or imported. If the error occurs during import, they are not imported.

### Track Import Rule type

You can track whether the account is manually imported or automatically imported.

To view account import type, select the **Vault > Accounts** tab to see the **Import Type** column. Click the Automatic Import link to view which rules the import matched on.

To view endpoint import type, select the **Vault > Endpoints** tab  to see the **Import Type** column. Click the Automatic Import link to view which rules the import matched on.

To view import rules in Vault or Asset reports:

1. From the left menu, click **Privileged Remote Access> Reports**.\
   The **Reports** page opens and the **Support** tab displays by default.
2. At the top of the page, click the **Vault** or **Asset** tab.
3. Click **Show Report**.
4. The **Data** column displays if Vault accounts were created or deleted using an import rule.

### Delete an import rule

1. From the main menu, click **Privileged Remote Access > Vault**.\
   The **Vault** page opens and the **Accounts** tab displays by default.
2. Click the **Connections** tab.\
   The **Password Safe Connections** page displays.
3. Locate the import rule in the **Password Safe Import Rules** list.
4. Click![Image of the Delete icon.](https://files.readme.io/0fe6778ffe2ad35358233e332947ec067d88c4d32757789b2c4a2c04952fa957-delete.png) to the right of the import rule.
5. A confirmation dialog box displays. Click **Yes**.

> ❗️
>
> Deleting an import rule also deletes any accounts and Assets associated with it that do not match any other import rules.