To create an API user and get its API token:1. Review the App Control API documentation on your server or GitHub to determine the
permissions needed for your API client. Please see
https://developer.carbonblack.com/reference/enterprise-protection for further information.
2. On the console menu, click the configuration (gear) icon and choose Login Accounts.
3. Click the User Roles tab and then the Add User Role button to open the Add User Role page.
4. On the Add User Role page, provide a Name (for example, “API Connector Extensions”), add a Description if you choose, and check the box for each permission
needed for your client. Note that some permissions depend upon others, and you must have permission to view an object if you also intend to change it.
5. When you have configured the group, click the Enabled button in the Status line and click the Create & Exit button at the bottom of the page.
6. Click the Users tab, and on the Login Accounts: Users page, click Add User.
7. On the Add User page, provide a user name (for example, “API HashBanScript”) and password, and choose the User Role you created above.
8. Provide any other information you choose in the other fields.
9. At the bottom of the page, check the Show API token box and then click the Generate button. An string of characters appears in the API Token box.
10. Copy the API Token to a location in which you can copy it to your API code. Also make a record of the login user name the code is associated with.
11. Click the Save button at the bottom of the page.