> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/v/vmware-carbon-black-app-control.md).

# VMware Carbon Black App Control

VMware Carbon Black App Control (formerly Bit9) controls which software can run on endpoints. OctoXLabs reads every computer known to the App Control Server, including the ones marked deleted or uninstalled. Installed applications and console users are not collected.

## Use cases

* List all computers registered in App Control.

```
Adapters = vmware-carbon-black-ac
```

* Find servers that are in your inventory but not protected by App Control. Replace `active-directory` with any other source that lists your servers.

```
Adapters = active-directory AND NOT Adapters = vmware-carbon-black-ac
```

## Before you begin

### Network

| Source              | Destination           | Port                        | Protocol |
| ------------------- | --------------------- | --------------------------- | -------- |
| OctoXLabs connector | App Control Server    | 443 (default, configurable) | HTTPS    |
| OctoXLabs connector | HTTP proxy (optional) | Set in **Proxy**            | HTTP     |

### Required permissions

| Scope or role     | Permission     | Needed for         |
| ----------------- | -------------- | ------------------ |
| Console user role | View computers | Computer inventory |

An API client has the same access level as the console user that owns the token. App Control reports missing permissions as 401 Unauthorized, not 403.

## Create credentials in VMware Carbon Black App Control

Use a separate console user for each API client, with the minimum permissions.

{% stepper %}
{% step %}

### Create a user role

Click the **Settings** (gear) icon, then **Login Accounts**. On the **User Roles** tab click **Add User Role**. Name it, for example `API OctoXLabs`. Enable **View computers**, set **Status** to **Enabled** and click **Create & Exit**.
{% endstep %}

{% step %}

### Create the user

On the **Users** tab click **Add User**. Enter a user name and password and select the role you created.
{% endstep %}

{% step %}

### Sign in as the new user

Log out. Log in again as the new user and open **User Settings** under the login name. From 8.11.0 each user must generate their own token.
{% endstep %}

{% step %}

### Generate the token

At the bottom of the page select **Show API token**, click **Generate** and copy the string in the **API Token** box.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                          |
| ------------- | -------- | ------- | ------- | ---------------------------------------------------- |
| IP            | Yes      | Text    |         | Address of the App Control Server, without a scheme. |
| Port          | No       | Integer | 443     | Server port.                                         |
| X Auth Token  | Yes      | Text    |         | API token.                                           |
| Is Secure     | No       | Boolean | True    | Use HTTPS.                                           |
| Per Page      | No       | Integer | 1000    | Computers per page.                                  |
| Fetch Devices | No       | Boolean | True    | Collect the computer inventory.                      |
| Proxy         | No       | Text    |         | Proxy in `host:port` format.                         |
| Timeout       | No       | Integer | 30      | Seconds to wait for API responses.                   |

## Troubleshooting

| Error message                  | Cause                                                   | Fix                                |
| ------------------------------ | ------------------------------------------------------- | ---------------------------------- |
| 401 Unauthorized (HTTP status) | The token is invalid, or its user lacks View computers. | Check the token and the user role. |

## Change history

{% hint style="info" %}
Available starting from version 6.7.2.
{% endhint %}
