delete contact/user
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
delete contact/user
I'm trying to re-create (created once, but was told to delete, and now asked to re-add
) a new user/contact using Active Directory and keep getting an error that a user with that ID already exists. There is no user with that ID under Manage users in the admin menu, nor is there a contact with that ID in CCM. Where would I go to manually delete any trace of this user so I can re-create the account?
Re: delete contact/user
Did you apply configuration after deleting it? Might want to give that a try and let us know if that works for you.
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: delete contact/user
I did, and yep, still says user already exists.
Re: delete contact/user
For a test, can you disable the Active Directory Integration and see if you can add the user then?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: delete contact/user
Also, all the check really does is try to find the user_id by username
So if you run this command:
Does it list that user?
So if you run this command:
Code: Select all
echo "select * from xi_users;" | psql nagiosxi nagiosxi- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: delete contact/user
ssax wrote:Also, all the check really does is try to find the user_id by username
So if you run this command:Does it list that user?Code: Select all
echo "select * from xi_users;" | psql nagiosxi nagiosxi
Yep. Not sure I want to disable the AD integration on the prod server. Don't want to risk that borking something else.
Re: delete contact/user
So it's still showing the user in the DB but it's not showing in the UI?
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: delete contact/user
Correct.
Re: delete contact/user
Were they a monitoring contact as well? I'm whipping up some commands for you that will manually remove the remnants.
Re: delete contact/user
Find the user_id with this command (it's the number to the left of their username):
Go to Admin > Users > Manage Users
Right-click on the X next to one of your users and select Copy Link Location.
Paste it into notepad, you should see something like this:
Change:
To:
Paste it into your browser address bar and hit enter.
Now try to add the user again.
Code: Select all
echo "select * from xi_users;" | psql nagiosxi nagiosxiRight-click on the X next to one of your users and select Copy Link Location.
Paste it into notepad, you should see something like this:
Code: Select all
http://ssc66xi/nagiosxi/admin/users.php?delete=1&user_id[]=18&nsp=f9dd99b34af0f946d528bfb48bea3163Code: Select all
user_id[]=18Code: Select all
user_id[]=YOUR_USER_ID_FROM_THE_FIRST_STEPNow try to add the user again.