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 Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

264 views 5 14
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot