export user list

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

export user list

Post by BanditBBS »

I know I've asked this before, but I just can't find the forum post :(

I need to export the list of users in XI for SOC audit. I'm going to go put in a feature request to get a button added to manage users screen, but in the meantime, someone want to help me out with the postgresql command(s)

Edit: Issue #758 created
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: export user list

Post by jdalrymple »

Code: Select all

psql -U nagiosxi -d nagiosxi -c 'select username, name, email, enabled from xi_users'
If it asks for a password, find it in /usr/local/nagiosxi/html/config.inc.php
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: export user list

Post by BanditBBS »

jdalrymple wrote:

Code: Select all

psql -U nagiosxi -d nagiosxi -c 'select username, name, email, enabled from xi_users'
If it asks for a password, find it in /usr/local/nagiosxi/html/config.inc.php
I actually knew where to find the password :) But it didn't prompt...thanks for the command, feel free to close this up
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked