Smart Rules in Password Safe | PS Pathfinder

What are Smart Rules?

A Smart Rule is a query that you can use to organize assets into Smart Groups and manage Password Safe managed accounts.

When you create a smart rule, you are essentially creating "if-then" logic.

The IF portion is the criteria you use to select assets in the Selection Criteria section. This criterion can be based on any collected data from scans or event processing.

The Then is the action you wish to take. This is in the Actions part of the smart rule form and can have multiple actions.

The View Results button allows you to preview the results of your smart rule, however you must create your smart rule before the results display by clicking Create Smart Rule.

Why use Smart Rules for asset discovery and onboarding

Smart Rules play a vital role in automating and optimizing asset management workflows. Use them to:

  • Group assets and accounts into Smart Groups- Allows you to simplify classification and policy enforcement.
  • Streamline onboarding workflows- Allows you to automate asset handling based on predefined logic.
  • Apply rules across asset, account, and managed system types- Allows you to achieve broad coverage and consistency.
  • Define selection criteria and actions using IF/THEN logic- Allows you to create dynamic, responsive rules and is the core of how Smart Rules operate; that is, evaluating conditions in real time and executing actions based on defined criteria.
  • Target specific assets with scheduled discovery scans- Ensures you get timely updates and visibility.
  • Reference Smart Groups within other Smart Rules- Allows you to build layered, modular logic.
  • Enable role-based assignment - Allows you to enforce granular access control and improve security posture.

Smart Rules types

You can use a Smart Rule to organize assets based on the filters selected. There are three types of smart rules:

Smart Rules TypeDescription
Asset-basedThis rule target assets that are stored within Password Safe database or through a Directory Query to onboard them for Password Safe management.
Managed AccountThis rule manages accounts in Password Safe by giving the ability to change passwords on accounts and corresponding settings, functional accounts, and password policies.
Managed SystemThis rule targets current managed systems in Password Safe to edit settings or to group them using the Smart Rule action Show managed system as Smart Group.

Some common uses for Smart Rules are:

  • Search for assets to onboard to Password Safe
  • Discover Active Directory accounts and manage them in Password Safe
  • Link discovered Active Directory accounts to manage them

Tip

Think of a Smart Rule as the logic engine which asks the question "How to select items"?

What are Smart Groups?

Smart Groups are a collection of managed assets, managed systems, or assets defined by a Smart Rule. These Smart Groups are automatically associated with:

  • Read permissions for all groups that the group creator is a member of
  • Full Control permissions for all groups that the user is a member of, and where the user has Asset Management and Smart Rule Management permissions

Tip

Think of a Smart Group as the resulting buckets that hold the filtered items created by a Smart Rule.

How are Smart Rules useful?

When you use a Smart Rule to register assets as Smart Groups, you can run Discovery Scans, and monitor and view assets. Smart rules can:

  • Save time: Automating actions based on vulnerability findings or asset changes saves time for IT and security teams.
  • Ensure consistency: Actions are taken consistently, reducing the risk of human error or missed steps in critical processes.
  • Reduce risk: By automating responses to vulnerabilities and security issues, Smart Rules help reduce the time window in which systems remain vulnerable.
  • Enhance compliance: Smart Rules help ensure that remediation efforts align with compliance requirements, automating compliance workflows and reporting.
  • Improve your security posture: Automating security processes leads to quicker identification and remediation of risks, improving overall security.

Predefined Smart Groups

By default there are Smart Groups already defined and created.

The following tables list Smart Groups useful in Password Safe environments.

Asset based Smart Groups

Smart GroupCategoryDefinition
All Assets in Password SafeAssets and DevicesAll assets under Password Safe management.
Recent Assets not in Password SafeAssets and DevicesAll assets discovered in the last 30 days that have not yet been added to Password Safe.
Recent Non Windows Assets not in Password SafeAssets and DevicesAll non Windows assets discovered in the last 30 days that have not yet been added to Password Safe.
Recent Windows Servers not in Password SafeServersWindows servers discovered in the last 30 days that have not yet been added to Password Safe.
Recent Virtual Servers not in Password SafeVirtualized DevicesVirtualized server assets discovered in the last 30 days that have not yet been added to Password Safe.

Managed system Smart Rules

Smart RuleCategoryDefinition
Database Managed SystemsTypesDatabase Managed Systems
Directory Managed SystemsTypesDirectory Managed Systems
Cloud Managed SystemsTypesCloud Managed Systems
Asset Managed SystemsTypesAsset Managed Systems
All Managed Systems associated with AssetsManaged SystemsAll Managed Systems associated with Assets
All Managed Systems not associated with AssetsManaged SystemsAll Managed Systems not associated with Assets
All Managed SystemsManaged SystemsAll Managed Systems
Recently Added Managed SystemsManaged SystemsManaged Systems added less than 30 days ago

Managed accounts Smart Groups

Smart GroupDefinition
All Managed AccountsAll accounts managed by Password Safe.
Recently Added Managed AccountsFilters on managed accounts added less than 30 days ago.
Database Managed AccountsFilters on the database platform and includes SQL Server and Oracle platforms.
Hardware Device Managed AccountsFilters on hardware devices including Dell DRAC and HP iLO platforms.
Linux Managed AccountsFilters on the Linux platform.
Mac Managed AccountsFilters on the macOS platform.
Unix Managed AccountsFilters on the Unix platform.
Windows Managed AccountsFilters on the Windows platform.

Considerations when designing Smart Rules

  • The filter criteria is processed hierarchically. When creating the filter structure, place the filters that reduce the largest number of entities at the top of the hierarchy.
  • When adding Active Directory accounts using a directory query, ensure the query is as restrictive as possible. For example, configure the query on a smaller set of data in your environment.
  • When adding assets to Password Safe, be cautious about creating more than one Smart Rule with the same systems or accounts. If the Smart Rules have different actions, they will start continually overwriting each other in an endless loop.
  • There can be delays when a Smart Rule depends on external data source, such as LDAP, as processing can take longer. For example, a directory query that uses the discover accounts feature (managed account Smart Rule) or discover assets feature (asset-based Smart Rule).

Smart Rule processing

A Smart Rule processes and updates information in Smart Groups when certain actions occur, such as the following:

  • The Smart Rule is created, or edited and saved.
  • A timer expires.
  • You manually kick off the processing by selecting the Smart Rule from the grid on the Smart Rules page, and then click Process.

ℹ️

The Process action from the grid on the Smart Rules page does not apply to managed account and managed system Quick Group Smart Rules, because these only run once upon creation and cannot be triggered to run again.

  • A Smart Rule with Smart Rule children triggers the children to run before the parent completes.
  • Managed account Smart Rules with selection criteria Dedicated Account process when a change to a mapped group is detected. This can occur in the following scenarios:
    • A new user logs on.
    • The group refreshes in Active Directory by an administrator viewing or editing the group in Configuration > Role Based Access > User Management.

Change the processing frequency for a Smart Rule

By default, Smart Rules process when asset changes are detected. The assets in the Smart Rule are then dynamically updated. For Smart Rules that require more intensive processing, you might want Smart Rules to process less frequently.

To provide more restrictive processing, you can select alternate frequency settings to override the default processing. The Smart Rules process in the selected time frame (for example, the rule processes once a week).

When creating a new Smart Rule or updating an existing one, select your desired frequency from the Reprocessing limit list in the Details section.

ℹ️

A Smart Rule is always processed when first saved or updated.

View and select Smart Rules processing statistics

The Smart Rules grid displays some processing statistics by default. Additional Smart Rules processing statistics, such as Processed Date, Successful Attempts, and Failed Attempts are available and can be displayed in the Smart Rules grid.

To add this information to the grid:

  1. At the top left of the page, click > Password Safe > Smart Rules.
    The Smart Rulespage displays. You can also access the Smart Rules grid by navigating to Configuration > General > Smart Rules.
  2. Click above the grid.
  3. Click the desired column to add that information to the grid.
    • Check marks indicate columns currently displayed.
    • You can remove a displayed column by clicking the column name in the Column chooser list.
    • If there are more columns displayed than can fit in the width of the screen, a scroll bar appears at the bottom of the grid. It may be necessary to scroll sideways to view any additional columns.

Use dedicated account Smart Rule

A dedicated account Smart Rule allows you to dynamically map dedicated administrative accounts outside of Password Safe to users in a group. This allows a lower privileged Password Safe user to access a higher privileged user's account temporarily while using Password Safe.

The below procedures provide instructions for configuring users with the ability to access a dedicated directory account's credentials, using a query matching on account name. Once configured, the users are able to request a password checkout for the dedicated account from the Password Safe portal. The user can then access resources using the dedicated account credentials.

You must configure the following:

  • Create a directory query to retrieve the directory account as well as its attributes.
  • Create a Smart Rule to run the directory query to find the account and its account name, and add it as a managed account in Password Safe.
  • Create a Smart Rule to map the dedicated account to a user group.
  • Assign user group permissions to the two newly created Smart Rules.

Create the directory query

  1. At the top left of the page, click > Password Safe > Configuration.
    The Configuration page displays.
  2. Under Role Base Access, select Directory Queries.
  3. Click + Create New Directory Query, and complete form:
    • Directory Type: Leave as Active Directory.
    • Title: Provide a meaningful name that allows for easy identification of the query.
    • Credentials: Select a credential that has permissions to query the directory user accounts.
    • Query Target: Provide the LDAP path to the target.
    • Scope: Leave as This Object and All Child Objects.
    • Object Type: Select User Objects.
    • Dynamically refresh results each use: Leave enabled.
    • Basic Filter: Provide the name of the dedicated account.
  4. Click Create Directory Query.

Create the Smart Rule to run the directory query and add managed account

ℹ️

This example is specific to managed accounts. Similar instructions apply for the other rule or entity types.

  1. At the top left of the page, click > Password Safe > Smart Rules.
    The Smart Rulespage displays. You can also access the Smart Rules grid by navigating to Configuration > General > Smart Rules.
  2. Select Managed Account from the Smart Rule type filter dropdown.
  3. Click + Create Smart Rule.
  4. Configure the Smart Rule as follows:
    • Category: Select Managed Accounts.
    • Name: Provide a meaningful name that allows for easy identification of the Smart Rule.
    • Selection Criteria:
      • Select Directory Query from the dropdown.
      • Leave Include accounts from Directory Query selected.
      • Select the directory query created in above steps.
      • Leave Discover accounts for Password Safe Management enabled.
      • Select the Domain from the dropdown.
    • Actions:
      • Select Manage Account Settings from the dropdown and set its related options as desired.
      • Add another action and select Show managed account as Smart Group from the dropdown.
      • Add another action and select Link domain accounts to Managed Systems from the dropdown, and then select your desired Asset or Managed System Smart Group from the dropdown.
  5. Click Create Smart Rule.

ℹ️

  • To view the contents of a Smart Rule when creating a new rule or editing an existing rule:
    • Once the rule is saved, click View Results.
    • You are taken to the associated grid, where the contents of the Smart Rule are listed.
    • If the rule is actively processing, a banner displays letting you know that.
  • View Results displays only if you have permissions to the grid corresponding to the Smart Rule, i.e.; Assets, Managed Accounts, Managed Systems.
  • The Smart Rule must be saved with Show as Smart Group selected under Actions to view the results.
  • Because the Smart Rule must process to display the contents in the grid, we recommend viewing the results using only the Show as Smart Group action and before adding additional actions that may make changes to accounts and assets in your network. Once you have confirmed the rule contains your desired items, you can then add additional actions to the Smart Rule.

Create the Smart Rule to map the dedicated account to the user group

  1. At the top left of the page, click > Password Safe > Smart Rules.
    The Smart Rulespage displays. You can also access the Smart Rules grid by navigating to Configuration > General > Smart Rules.
  2. Select Managed Account from the Smart Rule type filter dropdown.
  3. Click + Create Smart Rule.
  4. Configure the Smart Rule as follows:
    • Category: Select Managed Accounts.
    • Name: Provide a meaningful name that allows for easy identification of the Smart Rule.
    • Selection Criteria:
      • Select Dedicated Account from the dropdown.
      • Select Account Name from the dropdown.
      • Enter the account name you wish to match.
    • Actions:
      • Select Show managed account as Smart Group from the dropdown.
      • Add another action and select Map Dedicated Accounts to from the dropdown.
      • Select the applicable User Group to map to.
  5. Click Create Smart Rule.

ℹ️

  • To view the contents of a Smart Rule when creating a new rule or editing an existing rule:
    • Once the rule is saved, click View Results.
    • You are taken to the associated grid, where the contents of the Smart Rule are listed.
    • If the rule is actively processing, a banner displays letting you know that.
  • View Results displays only if you have permissions to the grid corresponding to the Smart Rule, i.e.; Assets, Managed Accounts, Managed Systems.
  • The Smart Rule must be saved with Show as Smart Group selected under Actions to view the results.
  • Because the Smart Rule must process to display the contents in the grid, we recommend viewing the results using only the Show as Smart Group action and before adding additional actions that may make changes to accounts and assets in your network. Once you have confirmed the rule contains your desired items, you can then add additional actions to the Smart Rule.

Assign user group permissions to the Smart Rules

  1. At the top left of the page, click > Password Safe > Configuration.
    The Configuration page displays.
  2. Under Role Base Access, select User Management.
  3. Locate the user group you had selected when creating the Smart Rule for dedicated account mapping.
  4. Click > View Group Details.
  5. In the Group Details pane, click Smart Groups.
  6. In the Smart Group Permissions pane, select the two dedicated account smart groups you created.
  7. Click Assign Permissions above the grid.
  8. Select Assign Permissions Read Only.

From the Smart Rules page, process the two newly created smart groups. After processing, the dedicated account discovered by the directory query is listed on the Managed Accounts page. Users belonging to the group you chose to map the dedicated account to are indicated in the Mapped to User column. You might need to add this column to the grid by clicking above the grid.

Use an Entra ID Smart Rule

An Entra ID Smart Rule enables Password Safe to automatically discover Entra ID accounts. This allows privileged accounts in Entra ID to be managed, including password rotation and check-in and check-out.

Follow the steps below to discover Entra ID accounts.

  1. At the top left of the page, click > Password Safe > Smart Rules.
    The Smart Rulespage displays. You can also access the Smart Rules grid by navigating to Configuration > General > Smart Rules.
  2. Select Managed Account from the Smart Rule type filter dropdown.
  3. Click + Create Smart Rule.
  4. Configure the rule as follows:
    • Category: Select Managed Accounts.
    • Name: Provide a meaningful name and description that allows for easy identification of the Smart Rule.
    • Reprocessing Limit: If desired, select a reprocessing limit.
    • Under Selection Criteria:
      • Select Azure Directory Query from the dropdown. There are several filters, and options are dynamic, depending on other selections:
        • Include ALL or ANY of the selection criteria.
        • There are two matching options available for discovering Entra ID accounts: Group Name and User Principle Name. Use a Group Name match to discover all accounts that are a member of the specified group. Use a User Principle Name match to allow a partial name match.
        • If using a Group Name, equals is the only match option. Enter the Group Name.
        • If using a User Principle Name, select starts with or ends with and enter the name.
      • Set the value for how many hours for rerunning the query.
      • Check the Discover accounts in Azure synced from on-premise option to include Entra ID accounts synced from on-premises Entra ID, as well as Azure-only accounts.
      • Leave Discover accounts for Password Safe Management checked.
      • Select an Azure domain from the dropdown.
      • Add additional selection criteria and groups, as required.
  5. Under Actions, select Show managed account as Smart Group from the dropdown.
  6. Add other actions as required to manage settings or work with the managed account.
  7. Click Create Smart Rule.

ℹ️

  • To view the contents of a Smart Rule when creating a new rule or editing an existing rule:
    • Once the rule is saved, click View Results.
    • You are taken to the associated grid, where the contents of the Smart Rule are listed.
    • If the rule is actively processing, a banner displays letting you know that.
  • View Results displays only if you have permissions to the grid corresponding to the Smart Rule, i.e.; Assets, Managed Accounts, Managed Systems.
  • The Smart Rule must be saved with Show as Smart Group selected under Actions to view the results.
  • Because the Smart Rule must process to display the contents in the grid, we recommend viewing the results using only the Show as Smart Group action and before adding additional actions that may make changes to accounts and assets in your network. Once you have confirmed the rule contains your desired items, you can then add additional actions to the Smart Rule.

Use Quick Groups

For a simpler way to organize managed accounts, you can group them using a Quick Group. The default processing time on a Quick Group is Once.

  1. At the top left of the page, click > Password Safe > Managed Accounts.
    The Managed Accounts page displays. You can also select the Managed Accountscontainer card on the Password Safe Home page.
  2. From the Smart Group filter dropdown, select an existing smart group in which the managed accounts are members.
  3. Select the managed accounts that you want to add to the Quick Group.
  4. Click Add to Smart Group above the grid.
  5. Select a group from the Smart Group dropdown or create a new one by typing in the name and clicking Add as New Option.
  6. Select Quick Groups from the Category dropdown.
  7. Leave the default description or enter a new one.
  8. Click Add Selected Accounts To Smart Group.
  9. Your new smart group is now available in the Smart Group filter dropdown.

Remove accounts from the Quick Group:

  1. At the top left of the page, click > Password Safe > Managed Accounts.
    The Managed Accounts page displays. You can also select the Managed Accountscontainer card on the Password Safe Home page.
  2. Select the group from the Smart Group filter dropdown.
  3. Select the account you wish to remove.
  4. Click Remove From Smart Group above the grid.

Locate Quick Groups from the Smart Rules page

  1. At the top left of the page, click > Password Safe > Smart Rules.
    The Smart Rulespage displays. You can also access the Smart Rules grid by navigating to Configuration > General > Smart Rules.
  2. Select Quick Groups from the Category dropdown.

Edit or deactivate a Quick Group

  1. At the top left of the page, click > Password Safe > Smart Rules.
    The Smart Rulespage displays. You can also access the Smart Rules grid by navigating to Configuration > General > Smart Rules.
  2. Locate the group in the grid.
  3. Click > View Details.
  4. Make your changes.
  5. Click Save Changes.

Manually add managed systems to Smart Groups from the Managed Systems page

ℹ️

Managed systems do not have a Quick Group category; however, the concept and process is essentially the same as it is for managed accounts.

  1. At the top left of the page, click > Password Safe > Managed Systems.
    The Managed Systems page displays. You can also select the Managed Systemscontainer card on the Password Safe Home page.
  2. From the Smart Group filter dropdown, select an existing Smart Group in which the managed systems are members.
  3. Select the managed systems that you want to add to the Quick Group.
  4. Click Add to Smart Group above the grid.
  5. Select a group from the Smart Group dropdown or create a new one by typing in the name and clicking Add as New Option.
  6. Select a Category from the dropdown.
  7. Leave the default description or enter a new one.
  8. Click Add Selected Systems To Smart Group.
  9. Your new smart group is now available in the Smart Group filter dropdown.

Remove a managed system from a Smart Group

  1. At the top left of the page, click > Password Safe > Managed Systems.
    The Managed Systems page displays. You can also select the Managed Systemscontainer card on the Password Safe Home page.
  2. Select the Smart Group from the Smart Group filter.
  3. Select the managed systems that you want to remove from the group.
  4. Click Remove From Smart Group above the grid.

Edit or deactivate a Managed System Quick Group

  1. At the top left of the page, click > Password Safe > Smart Rules.
    The Smart Rulespage displays. You can also access the Smart Rules grid by navigating to Configuration > General > Smart Rules.
  2. Select Managed System from the Smart Rule type filter.
  3. Locate the Quick Group you created.
  4. Click > View Details.
  5. Make your changes.
  6. Click Save Changes.

ℹ️

  • You cannot add or modify filters or actions for Quick Groups.
  • To view the contents of a Smart Rule when creating a new rule or editing an existing rule:
    • Once the rule is saved, click View Results.
    • You are taken to the associated grid, where the contents of the Smart Rule are listed.
    • If the rule is actively processing, a banner displays letting you know that.
  • View Results displays only if you have permissions to the grid corresponding to the Smart Rule, i.e.; Assets, Managed Accounts, Managed Systems.
  • The Smart Rule must be saved with Show as Smart Group selected under Actions to view the results.
  • Because the Smart Rule must process to display the contents in the grid, we recommend viewing the results using only the Show as Smart Group action and before adding additional actions that may make changes to accounts and assets in your network. Once you have confirmed the rule contains your desired items, you can then add additional actions to the Smart Rule.

Delete Smart Rules

  1. At the top left of the page, click > Password Safe > Smart Rules.
    The Smart Rulespage displays. You can also access the Smart Rules grid by navigating to Configuration > General > Smart Rules.
  2. Select one or more Smart Rules in the grid.
  3. Click above the grid. You can also click to the right of a single Smart Rule and select Delete.

ℹ️

  • Built in Smart Rules cannot be deleted. These are identified by the Lock icon.
  • A Smart Rule that is used in another Smart Rule cannot be deleted or marked as inactive.

Audit Smart Rules

To audit new or edited Smart Rules:

  1. At the top left of the page, click > Password Safe > Configuration.
    The Configuration page displays. You can also select the Configurationcontainer card on the Password Safe Home page.
  2. Under General, select User Audits.
  3. Select Section from the Filter by dropdown.
  4. Select Smart Rule from the Section dropdown.
  5. Click to the right of the Smart Rule.
    • If a Smart Rule is added, the Add Details pane displays with all added information.
    • If a Smart Rule is edited, the Edit Details pane displays with all edited information.

©2003-2025 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.