Purging non active users

Danny Spence August 21, 2012

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

0 votes
Vladimir Omelchenko December 17, 2012

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.

Arthur van der Molen December 17, 2012

Thanks...

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

0 votes
Arthur van der Molen December 17, 2012

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....

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events