Purging non active users

We need to remove over 1000 users from the confluence database who are no longer active. Can we do this directly from the database or will this cause a problem inside of Confluence? If this cannot be done directly from the database, then what is the method of purging users so we can free up some licenses?

2 answers

Yes, we would like this too. We had this option to prune in mediawiki. Not in confluence.... Every year we have 5000 new students and not only 1% create content....

It is better not to remove the users from the tools because it can cause issue but you can always disable them.

We have a connection with Crowd and all Atlassian tools so if we want to disable the inactive users we can just use the query like following:

use confluence_db;

update cwd_user set active='F' where user_name in ('user1','user2',...,'userN');

Better do no do it on live system and stop the confluence and crowd first.


First, this is a confluence issue but second we create users the soon the want to acces any space, We use a single signon setup based on CAS. So even when users have no content what se ever we have created the user. As we have each year more then 5000 new students and 5000 who leave our university we have lots of accounts without any content and they just fill tables...

So I need a query that selects the users with no content (pages, comments, blog entries) and putge them from the USERS table

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Agile

How Scrum works? It starts with training and education

To answer “How scrum works,” most of the teams I've worked with first addressed the question: “where to start?”  That question applies to both implementation and improvements on the Scrum framew...

169 views 3 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you