> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Account discovery configurations

Configure account discovery in Devolutions Server to scan providers for accounts, import them into PAM vaults, and manage JIT group assignments.

Account discovery configurations are the instances that discover accounts of a provider's environment. The types of account discovery configurations match the supported Devolutions Server providers.

To see the results of a scanning operation, click on the eye-shaped ***View result*** icon or the number shown in the ***Results*** column of a particular account discovery configuration.

To manage privileged accounts with the Devolutions Server PAM feature, select the accounts from the ***Account discovery configurations*** result page and click on the ***Import selected accounts*** button (***Import selected computers*** for computers found by a Domain account discovery configuration). The accounts should then be available in the ***Privileged access*** section. See [Account discovery results](https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md).

The [Providers dashboard](https://docs.devolutions.net/pam/pam-with-devolutions-server/providers/providers-dashboard.md) lists the imported accounts of every provider in one place, with the vault where each account is stored.

### Open the account discovery configurations <a href="#open-the-account-discovery-configurations" id="open-the-account-discovery-configurations"></a>

Go to ***Administration*** – ***Privileged access management (PAM)*** – ***Account discovery configurations*** (section ***General*** of the PAM menu, between ***Providers*** and ***Quick start***).

The page lists the account discovery configurations of the providers you are allowed to see. A configuration is shown only when you have the ***View*** account discovery permission on its provider.

### Permissions <a href="#permissions" id="permissions"></a>

Account discovery permissions are granted per provider. See [PAM provider permissions](https://docs.devolutions.net/pam/pam-with-devolutions-server/providers.md) and the [roles](https://docs.devolutions.net/server/concepts/intermediate-concepts/roles) of Devolutions Server.

<table><thead><tr><th width="260">PERMISSION</th><th>WHAT IT ALLOWS</th></tr></thead><tbody><tr><td>Account discovery – <em><strong>View</strong></em></td><td>See the account discovery configurations of the provider in the list.</td></tr><tr><td>Account discovery – <em><strong>Add</strong></em></td><td>Create an account discovery configuration on the provider (<em><strong>Add a new account discovery configuration</strong></em> button). Also needed to save an account discovery configuration from the <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/pam-quick-start.md">Quick start</a>, and to open the <em><strong>Quick start</strong></em>.</td></tr><tr><td>Account discovery – <em><strong>Edit</strong></em></td><td>Edit an existing account discovery configuration.</td></tr><tr><td>Account discovery – <em><strong>Delete</strong></em></td><td>Delete an account discovery configuration. Moving an existing configuration to another provider needs <em><strong>Delete</strong></em> on the current provider and <em><strong>Add</strong></em> on the new one.</td></tr><tr><td>Account discovery – <em><strong>Execute</strong></em></td><td>Start an account discovery (<em><strong>Start</strong></em> action and <em><strong>Start account discovery on save</strong></em> option).</td></tr><tr><td>Account discovery results – <em><strong>View</strong></em></td><td>Open the results of an account discovery configuration and the <em><strong>Delta</strong></em> dialog.</td></tr><tr><td>Account discovery results – <em><strong>Import</strong></em></td><td>Import the discovered accounts and computers.</td></tr><tr><td>Account discovery results – <em><strong>Acknowledge</strong></em></td><td>Mark changes as read, delete deleted accounts and update modified accounts in the <em><strong>Delta</strong></em> dialog.</td></tr><tr><td>Provider – <em><strong>Edit</strong></em></td><td>Use <em><strong>Add to JIT</strong></em> in the <em><strong>Account details</strong></em> dialog.</td></tr><tr><td>Provider – <em><strong>Remove assignment</strong></em></td><td>Use <em><strong>Remove assignment</strong></em> in the <em><strong>Account details</strong></em> dialog.</td></tr><tr><td>Provider – <em><strong>List</strong></em> (groups)</td><td>List the groups of a discovered account in the <em><strong>Account details</strong></em> dialog.</td></tr></tbody></table>

### Account discovery configuration list <a href="#account-discovery-configuration-list" id="account-discovery-configuration-list"></a>

#### Columns <a href="#columns" id="columns"></a>

Use the column selector (***Columns***, ***Reset***) to show or hide columns. The ***Name*** column is always visible. The number of configurations is shown as "{n} Results". An empty list shows "No data to display".

<table><thead><tr><th width="220">COLUMN</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><em><strong>Status</strong></em></td><td>Icon of the last account discovery. See <a href="#status">Status</a>.</td></tr><tr><td><em><strong>Scan type</strong></em></td><td>Type of the account discovery configuration, for example <em><strong>Domain</strong></em> or <em><strong>Windows User</strong></em>. See <a href="#account-discovery-configuration-types">Account discovery configuration types</a>.</td></tr><tr><td><em><strong>Name</strong></em></td><td>Name of the account discovery configuration.</td></tr><tr><td><em><strong>Last run time</strong></em></td><td>Date and time of the last account discovery.</td></tr><tr><td><em><strong>Next run time</strong></em></td><td>Date and time of the next scheduled account discovery. Empty when the configuration has no recurrence.</td></tr><tr><td><em><strong>Recurrent</strong></em></td><td>Checked when the configuration has a recurrence, or when it is a subscan of a recurrent configuration.</td></tr><tr><td><em><strong>Users</strong></em></td><td>Counts of <em><strong>New users</strong></em>, <em><strong>Modified Users</strong></em> and <em><strong>Deleted Users</strong></em> found by the last account discovery. With the results <em><strong>View</strong></em> permission, click a count to open the <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md#delta">Delta</a> dialog.</td></tr><tr><td><em><strong>Computers</strong></em></td><td>Counts of <em><strong>New computers</strong></em>, <em><strong>Modified computers</strong></em> and <em><strong>Deleted computers</strong></em> (Domain account discovery configurations that include computers). Click a count to open the <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md#delta">Delta</a> dialog.</td></tr><tr><td><em><strong>Results</strong></em></td><td>Number of accounts found. Click it to open the <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md">results</a>.</td></tr><tr><td><em><strong>Subscans</strong></em></td><td>Number of subscans of the configuration. Click it to open the <a href="#subscans">Subscans</a> dialog.</td></tr></tbody></table>

Filter the list with the ***Filters*** menu on the ***Name*** and ***Scan type*** columns (***Clear filter***, ***Clear all***).

#### Status <a href="#status" id="status"></a>

<table><thead><tr><th width="220">STATUS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><em><strong>Queued</strong></em> (hourglass)</td><td>The account discovery is waiting to run. Also shown when the next scheduled run time is already past.</td></tr><tr><td><em><strong>In progress</strong></em></td><td>The account discovery is running.</td></tr><tr><td><em><strong>Last scan successful</strong></em> (green check mark)</td><td>The last account discovery completed.</td></tr><tr><td><em><strong>Error</strong></em></td><td>The last account discovery failed. See <a href="#messages-and-errors">Messages and errors</a>.</td></tr></tbody></table>

#### Actions <a href="#actions" id="actions"></a>

<table><thead><tr><th width="260">ACTION</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><em><strong>Add a new account discovery configuration</strong></em></td><td>Opens the type selector. Needs the account discovery <em><strong>Add</strong></em> permission. See <a href="#add-an-account-discovery-configuration">Add an account discovery configuration</a>.</td></tr><tr><td><em><strong>Edit</strong></em></td><td>Opens the <em><strong>Account discovery configuration</strong></em> dialog. A subscan opens read-only (<em><strong>Close</strong></em> button only).</td></tr><tr><td><em><strong>View result</strong></em></td><td>Opens the <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md">results</a> of the last account discovery.</td></tr><tr><td><em><strong>Start</strong></em></td><td>Queues an account discovery now. The message "The job will start as soon as possible." confirms it.</td></tr><tr><td><em><strong>Delete</strong></em></td><td>Deletes the configuration after the "Delete message" confirmation: "Delete '{0}'?". When the configuration has subscans, the message is "Do you want to delete this account discovery configuration? All associated sub-account discovery will also be deleted."</td></tr></tbody></table>

#### Subscans <a href="#subscans" id="subscans"></a>

A subscan is an account discovery configuration created for a computer imported from a Domain account discovery configuration (see [Import computers](https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md#import-computers)). The ***Subscans*** dialog lists them with the same columns and actions as the main list, and a ***Close*** button. A subscan uses the recurrence of its parent configuration.

### Add an account discovery configuration <a href="#add-an-account-discovery-configuration" id="add-an-account-discovery-configuration"></a>

1. Go to ***Administration*** – ***Privileged access management (PAM)*** – ***Account discovery configurations***.
2. Click ***Add a new account discovery configuration***.
3. In the ***Add a new account discovery configuration*** dialog, select a type in the ***Built-in*** or ***Custom*** category. Use ***Search everywhere*** to filter the types.
4. Click ***Continue***.
5. Fill the ***Account discovery configuration*** dialog: ***Name***, ***Provider*** and the fields of the type, the schedule, and ***Start account discovery on save***, as described in the next section.
6. Click ***Save***.

<table><thead><tr><th width="220">CATEGORY</th><th>TYPES</th></tr></thead><tbody><tr><td><em><strong>Built-in</strong></em></td><td><em><strong>Domain</strong></em>, <em><strong>Local accounts</strong></em>, <em><strong>SQL Server User</strong></em>, <em><strong>Windows User</strong></em>, <em><strong>Azure AD / Entra ID</strong></em>, <em><strong>SSH key</strong></em>, <em><strong>AWS IAM User</strong></em>, <em><strong>PostgreSQL User</strong></em>, <em><strong>MongoDB User</strong></em>.</td></tr><tr><td><em><strong>Custom</strong></em></td><td>The <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/providers/custom-pam-providers.md">custom provider templates</a> that have an account discovery script.</td></tr></tbody></table>

### Account discovery configuration settings <a href="#account-discovery-configuration-settings" id="account-discovery-configuration-settings"></a>

The ***Account discovery configuration*** dialog has the same sections for every type. Only the ***Configuration*** section changes.

<table><thead><tr><th width="220">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td colspan="2"><em><strong>General</strong></em></td></tr><tr><td><em><strong>Name</strong></em></td><td>Display name of the account discovery configuration. Required.</td></tr><tr><td colspan="2"><em><strong>Configuration</strong></em></td></tr><tr><td><em><strong>Provider</strong></em></td><td>Provider used to discover the accounts. Only the providers of the selected type are listed. Other fields depend on the type: see <a href="#account-discovery-configuration-types">Account discovery configuration types</a>.</td></tr><tr><td colspan="2"><em><strong>Schedule</strong></em></td></tr><tr><td><em><strong>Recurrence</strong></em></td><td>Runs the account discovery on a regular basis. Cleared by default (no recurrence). Not available on a subscan, which shows the read-only <em><strong>Parent scan</strong></em>, <em><strong>Start</strong></em> and <em><strong>Every</strong></em> of its parent.</td></tr><tr><td><em><strong>Start</strong></em></td><td>Date and time of the first scheduled account discovery. Cannot be earlier than today.</td></tr><tr><td><em><strong>Every</strong></em></td><td>Number of units between two account discoveries, from 1 to 100. Set to 1 when <em><strong>Recurrence</strong></em> is enabled.</td></tr><tr><td><em><strong>Unit</strong></em></td><td><em><strong>Minutes</strong></em>, <em><strong>Hours</strong></em> or <em><strong>Days</strong></em>. Default: <em><strong>Days</strong></em>.</td></tr><tr><td colspan="2"><em><strong>Actions</strong></em></td></tr><tr><td><em><strong>Start account discovery on save</strong></em></td><td>Queues an account discovery when you click <em><strong>Save</strong></em>. Shown only with the account discovery <em><strong>Execute</strong></em> permission on the provider.</td></tr></tbody></table>

#### Account discovery configuration types <a href="#account-discovery-configuration-types" id="account-discovery-configuration-types"></a>

<table><thead><tr><th width="220">TYPE</th><th>CONFIGURATION FIELDS</th></tr></thead><tbody><tr><td><em><strong>Domain</strong></em></td><td><em><strong>Domain container</strong></em>, <em><strong>Include computers in the account discovery</strong></em>, <em><strong>Accounts automatically imported and managed</strong></em>. See <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/domain-account-discovery-configuration.md">Domain account discovery configuration</a>.</td></tr><tr><td><em><strong>Azure AD / Entra ID</strong></em></td><td><em><strong>Search mode</strong></em> and the selected groups or roles. See <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/entra-id-account-discovery-configuration.md">Entra ID account discovery configuration</a>.</td></tr><tr><td><em><strong>SQL Server User</strong></em></td><td><em><strong>Database name</strong></em>. See <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/sql-account-discovery-configuration.md">SQL account discovery configuration</a>.</td></tr><tr><td><em><strong>Local accounts</strong></em></td><td><em><strong>Ignore system users</strong></em>. See <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/ssh-local-account-discovery-configuration.md">SSH local account discovery configuration</a>.</td></tr><tr><td><em><strong>Windows User</strong></em></td><td><em><strong>Excluded accounts</strong></em>. See <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/windows-account-discovery-configuration.md">Windows account discovery configuration</a>.</td></tr><tr><td><em><strong>SSH key</strong></em>, <em><strong>AWS IAM User</strong></em>, <em><strong>PostgreSQL User</strong></em>, <em><strong>MongoDB User</strong></em>, custom</td><td>See <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/other-account-discovery-configurations.md">Other account discovery configurations</a>.</td></tr></tbody></table>

### How account discovery runs <a href="#how-account-discovery-runs" id="how-account-discovery-runs"></a>

Account discoveries are run by the Devolutions Server scheduler service, not by the web application.

* The scheduler checks the account discovery configurations when it starts, then every 2 minutes.
* It runs only when PAM is enabled and the PAM migration of the Devolutions Server instance is done.
* Each check first marks as failed the account discoveries that were still in progress (for example after a service restart), then runs the account discoveries started manually (***Start***, ***Start account discovery on save***), then the scheduled ones that are due.
* The next run time of a recurrent configuration is its last start time plus the recurrence (***Every*** and ***Unit***).
* Errors are written to the Devolutions Server logs, in the ***Inventory*** category, and the configuration shows the ***Error*** status.

{% hint style="info" %}
If configurations stay ***Queued***, make sure the Devolutions Server scheduler service is running. See [Scheduler service general information](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/scheduler-service-general-information).
{% endhint %}

### Run an account discovery from a provider <a href="#run-an-account-discovery-from-a-provider" id="run-an-account-discovery-from-a-provider"></a>

An account discovery can also be run once, without saving a configuration, from the provider list.

1. Go to ***Administration*** – ***Privileged access management (PAM)*** – ***Providers***.
2. Click the ***Account discovery*** button of a provider. The ***Account discovery - {provider}*** dialog opens.
3. Fill the configuration fields of the provider type, if any (MongoDB and custom providers have none: the account discovery starts at once), then click ***Scan***.
4. The dialog shows "{0} accounts were found. {1} accounts were already imported." and the warning "Account discovery results are not saved unless you import the accounts."
5. Select the accounts to import and click ***Import*** (results ***Import*** permission; only accounts not already imported can be selected). The import dialog is the one of the [Quick start](https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/pam-quick-start.md#import-the-accounts).
6. Click ***Rescan*** to run the account discovery again, or ***Close***.

When nothing is found, the dialog shows "No results" and "The scan did not return any results." Group management (***Account details***) is not available in this dialog.

### Messages and errors <a href="#messages-and-errors" id="messages-and-errors"></a>

<table><thead><tr><th width="320">MESSAGE</th><th>MEANING</th></tr></thead><tbody><tr><td>"The domain controller’s TLS certificate could not be validated ({0}). Thumbprint: {1}. Use 'Check certificates' on the provider to trust it, add its thumbprint to the trusted thumbprints, or enable 'Skip TLS certificate validation'."</td><td>Domain account discovery: the certificate of the domain controller is not trusted. Fix it in the <a href="https://docs.devolutions.net/pam/pam-with-devolutions-server/providers/managed-providers/domain-user-provider.md">Domain user provider</a>.</td></tr><tr><td>"The user has not been found, or the password is incorrect"</td><td>The credentials of the provider were refused.</td></tr><tr><td>"Connection failed"</td><td>The provider could not be reached.</td></tr><tr><td>"Invalid data"</td><td>SSH account discovery: the host could not be reached or returned unexpected data.</td></tr><tr><td>"No account discovery command has been found on the provider template: {0}"</td><td>Custom account discovery: the provider template has no account discovery script.</td></tr><tr><td>"Accounts must have a Username and a Unique Identifier type property to use the account discovery feature."</td><td>Custom account discovery: the provider template does not define the needed properties.</td></tr><tr><td>"Imported Accounts must have a Username and Unique Identifier"</td><td>Custom account discovery: the script returned accounts without these values.</td></tr><tr><td>"This accounts could not be imported on the scan: {label}"</td><td>Custom account discovery: some returned accounts were skipped (warning in the logs).</td></tr><tr><td>"Unable to load the data"</td><td>The <em><strong>Domain containers</strong></em> browser could not read the domain.</td></tr></tbody></table>

### Import <a href="#import" id="import"></a>

Importing discovered accounts and computers is described in [Account discovery results – Import accounts](https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md#import-accounts).

### Manage group assignments from scan results <a href="#manage-group-assignments-from-scan-results" id="manage-group-assignments-from-scan-results"></a>

Viewing and changing the group assignments of a discovered account (***Add to JIT***, ***Remove assignment***) is described in [Account discovery results – Manage group assignments](https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md#manage-group-assignments-from-scan-results).

### Devolutions Server 2027.1 and later <a href="#devolutions-server-2027-1-and-later" id="devolutions-server-2027-1-and-later"></a>

* The hint of ***Excluded accounts*** (Windows) reads "Separate multiple accounts with comma (,)".
* The import dialogs have new options; see [Account discovery results – Devolutions Server 2027.1 and later](https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md#devolutions-server-2027-1-and-later).

### See also

* [Devolutions Academy – Discovering your credentials using scans](https://academy.devolutions.net/student/path/2354099/activity/4305212)
* [Account discovery results](https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/account-discovery-results.md)
* [Quick start](https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations/pam-quick-start.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/pam/pam-with-devolutions-server/account-discovery-configurations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
