CB Response: How To View Users API Keys
search cancel

CB Response: How To View Users API Keys

book

Article ID: 290574

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

How to view Users API Keys via CLI.

Environment

  • CB Response Server: All Versions
  • PostGres Database

Resolution

  1. Run following command on Master/Standalone server to view  API Keys for all Users:
psql -d cb -p 5002 -c "Copy (select username, auth_token from cb_user) to '/tmp/username_auth_token.csv' with CSV";

 

Additional Information

  • Command will create file called 'username_auth_token.csv' in the /tmp directory