Skip to main content

Get Agents Count

Get the count of agents that match a filter. This command is useful to run before you run other commands. You will be able to manage agent maintenance better if you know how many agents will get a command that takes time.

Basic Parameters

ParameterDescription
Active ThreatsInclude agents with this amount of active threats. Example: 3.
Is ActiveInclude only active agents.

Advanced Parameters

ParameterDescription
Account IDsList of account IDs to filter by. Example: 225494730938493804,225494730938493915.
Active Directory QueryAn Active Directory query string. Example: CN=Managers,DC=sentinelone,DC=com.

Example Output

{
"errors": [
{
"type": "object"
}
],
"data": {
"total": "integer"
}
}

Workflow Library Example

Get Agents Count with Sentinelone and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop