Products

Inside the AnyIdentity workflow: Account discovery

Anyidentidy workflow devolutions

AnyIdentity’s Account Discovery feature automates the identification of privileged accounts, providing visibility and control over your identity providers.

Adam Bertram

Adam Bertram is a 20+ year veteran of IT and an experienced online business professional. He’s a successful blogger, consultant, 6x Microsoft MVP, trainer, published author and freelance writer for dozens of publications. Catch up with Adam at adamtheautomator.com for how-to tech tutorials, connect on LinkedIn, or follow him on X at @adbertram.

View more posts

Have you ever felt like you’re playing a never-ending “Where’s Waldo?” game with your privileged accounts? You’re not alone. Keeping track of every privileged account is often like trying to herd cats—frustrating and seemingly impossible. But what if there was a way to automate this process and bring all those elusive accounts out of hiding?

Enter AnyIdentity’s Account discovery feature. This action within AnyIdentity providers allows you to shine a searchlight on your identity providers, illuminating every nook and cranny where privileged accounts might be lurking.

AnyIdentity’s workflow

AnyIdentity allows for four actions that form a comprehensive password management workflow:

  1. Account discovery: Identifies and catalogs privileged accounts.
  2. Heartbeat: Verifies if stored passwords match current ones.
  3. Password rotation: Updates passwords when necessary.
  4. Propagation: Updates external services and hosts’ stored credentials.

Account discovery is the crucial first step that lays the foundation for effective privileged access management.

The hidden dangers of unknown accounts

Imagine an old administrator account, created years ago for a one-time task, sitting forgotten in a dusty corner of your network. It’s a ticking time bomb of potential security breaches. Manually tracking down these accounts is not just time-consuming; it’s often unfeasible. That’s where AnyIdentity account discovery steps in to save the day—and potentially your organization’s security posture.

AnyIdentity’s X-ray vision for your network

AnyIdentity’s Account discovery feature doesn’t just find accounts; it collects them into the Devolutions PAM infrastructure to help you inspect and manage privileged accounts. Let’s dive into the technical aspects of how this works.

Discovery in action

Imagine running a targeted scan and, within minutes, having an inventory of privileged accounts: no more guesswork, no more manual audits. See it in action in the GIF further down.

At the heart of the account discovery process is a PowerShell action script that connects to your identity provider and lists all accounts found at a specified location. The action script’s job is to gather a complete inventory of every privileged account on your identity provider.

Here’s a simplified example of what this script might look like for an SQL Server provider:

$connectionString = “Server=$Server\\$Instance,$Port;Database=master;”
if ($ProviderSqlLoginUserName) {
    $connectionString += “User Id=$ProviderSqlLoginUserName;Password=$(ConvertFrom-SecureString $ProviderSqlLoginPassword -AsPlainText);”
} else {
    $connectionString += "Integrated Security=True;"
}

$connection = New-Object System.Data.SqlClient.SqlConnection($connectionString)
$connection.Open()

$command = $connection.CreateCommand()
$command.CommandText = "SELECT name, password_hash FROM sys.sql_logins;"

$reader = $command.ExecuteReader()
$logins = @()
while ($reader.Read()) {
    $logins += [PSCustomObject]@{
        id = $reader['name']
        username = $reader['name']
        secret = $reader['password_hash']—join ''
    }
}

$connection.Close()
$logins

This script connects to an SQL Server instance and retrieves all SQL logins along with their password hashes. The output is structured as AnyIdentity expects, with id, username, and secret properties for each account.

Configuring the discovery action

In the AnyIdentity provider template, you define the parameters that the discovery script needs.


Account discovery parameters
Account discovery parameters


These parameters are mapped to the PowerShell action script’s parameters, allowing for flexible configuration of the discovery process.

Discovery in action

When you create an AnyIdentity provider from a template, the next step is to create a scan configuration.


Scan configurations
Scan configurations


When a scan configuration runs, it will invoke the account discovery action script with the provided parameters:

  1. Connects to the identity provider (SQL Server in our example).
  2. Lists all accounts and their associated secrets.
  3. Returns all discovered accounts to the PAM module in a standardized format.
  4. Once the accounts are received by the PAM module, they are processed and made available for import into the PAM module.

Scan configuration results
Scan configuration results


You can get a glimpse of the overall process below.


5a249a38-95c9-49f2-b985-e33a7959548c.gif


Teamwork makes the dream work

Account discovery is just the beginning. Once accounts are discovered, AnyIdentity's workflow continues.

  • Heartbeat action: Regularly checks if the stored secrets match what's on the identity provider.
  • Password rotation action: Automatically updates passwords when discrepancies are found or based on your defined schedule.
  • Password propagation: If configured, connects to remote endpoints and updates stored credentials with the newly changed password

This holistic approach ensures that your privileged accounts are discovered, continuously monitored, and secured.


d90dc366-4244-408a-9af9-ca7e7c6969be.png


Your turn to discover

Ready to illuminate your network's hidden corners? AnyIdentity's Account discovery feature is your first step towards complete visibility and control of your privileged accounts.

If you’re ready to start discovering accounts on your identity providers and taking control with PowerShell customization, request a demo to explore AnyIdentity, a part of the Devolutions PAM module.

Related Posts

Read more Products posts