IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

EDR: How to identify a username from a userid

EDR: How to identify a username from a userid

Environment

  • EDR Server: 7.x and Higher

Objective

  • How does an administrator identify a username from just a userid number?

Resolution

      A.  Login to the EDR Primary server and run:
sudo psql -p 5002 cb -c "select id, username, firstname, lastname from cb_user;"
     
      B. Alternately, once on the EDR Primary server connect to the psql database.
  1. Connect to psql database:
sudo psql -d cb -p 5002 
  1. List the cb database schema tables.
cb# d\
  1. List all columns in the cb_user table.
cb# \d cb_user
  1. List in a table format, the username and user id.
cb# select id, username, firstname, lastname from cb_user;
  1. Log out.
cb# \q

 

Additional Notes

  • Warning: It is not advised to modify the Postgres table without CarbonBlack Customer Support assistance due to the multiple indexes that could be affected.

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
0% helpful (0/1)
Article Information
Author:
Creation Date:
‎11-20-2018
Views:
917
Contributors