Export All User's API Tokens
search cancel

Export All User's API Tokens

book

Article ID: 285357

calendar_today

Updated On:

Products

Carbon Black EDR

Issue/Introduction

How to export a list of all user's API tokens from the Carbon Black EDR Server

Environment

  • Carbon Black EDR Server:  All Versions

Resolution

  1. Execute the following command, as root, on your on-prem Carbon Black EDR server (on primary node in the case of a cluster)
psql -d cb -p 5002 -c "copy (select username, auth_token from cb_user;) to '/tmp/username_auth_token.csv' with CSV";
  1. CSV export containing username/token will be available under:
/tmp/username_auth_token.csv