Steps to create an API user and token for API access
Environment
App Control Console: All supported versions
Resolution
Before starting, please review the App Control API documentation on the server or GitHub (https://github.com/carbonblack) to determine the permissions needed for the API client.
Navigate to the App Control console
In the console, click the gear icon in the top right corner, go to Login Accounts
Click the User Roles tab and then Add User Role button.
On the Add User Role page, provide a Name (for example, “API Connector Extensions”), add a Description, and check the box for each permission needed for the client.
After configuring the group, click the Enabled button in the Status line and click the Create & Exit button at the bottom of the page.
Click the Users tab, then on the Login Accounts: Users page click Add User.
On the Add User page, provide a user name (example, “API HashScript”) and password. Afterward, choose the User Role created above
On the bottom of the page, check the Show API token box and then click the Generate button. A string of characters appears in the API Token box.
Copy the API Token to a location where it can be copied to the API code.