Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

disable confluence users via sql

maarten breesnee
Contributor
December 11, 2018

Hi,

I am in a team who took over confluence sys management. First of all we want to clean up all the users who haven't logged in for 6 months.

However its a lot of work to do this. Is there a safe query to do this?

2 answers

0 votes
Amith Mathur {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2018

Hi @maarten breesnee

You can retrieve the list of users who have not logged in since a specific date or by last login date. Please run the query, according to your confluence version, from this page.  

Once you do so, you can execute the below query to disable the users. However, it is advisable to do it through API or the UI. If you want to do it from the database, test it thoroughly in staging environment before doing so in the production. 

UPDATE CWD_USER set ACTIVE = "F" where user_name="userid";

Thanks, 
Amith Mathur

0 votes
Alexis Robert
Community Champion
December 11, 2018

Hi @maarten breesnee

 

you can't bulk remove users like this directly in Confluence, but there is an addon that can do that if you want to give it a try. 

 

Let me know if you have any questions, 

 

--Alexis

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events