How can I quickly remove users of Confluence who haven't logged in for 3 months?

Currently the only way I can see to remove users is individually by their name...

I need to remove 90+ users....

3 answers

Removing them individually is the way to go. For doing repetative stuff like this though, I typically use Imacros. You can record the event of removing a user and then configure it to be replayed and remove the remainder of users.

Not an official 'Atlassian' method by any means, but an effective way to do some browser automation. Imacros is a firefox plugin that you can use to automate stuff in your browser and it's free.

Hi Luther,

Thanks for your response.

I'm guessing this can't be configured based on a user's last log in?

When the Imacro is replayed how does it decide which user to disable?

Thanks again

This may not be the answer you were looking for, but if I had around 100 users to delete I would do this:

1. Write a SQL report to display users who have not logged in recently.

2. Extract those usernames from the SQL report.

3. Record the following event in confluence (Search for the 'username' > delete user) This will give you 2 lines in Imacros for every delete.

4. I would then wrap the code around each username that I pulled out of SQL. This would give me 2 lines in IMacros per user deletion.

5. Run it to delete only the user names specified from the SQL report.

This obviously assumes that you have access to SQL and can easily wrap some code around the username section of the Imacro recording using excell or something. Hopefully all that isn't too confusing.

Thanks again for such a quick response Luther, and please accept my apologies I should've stated that I am using the 'OnDemand' version of the product...I don't think I have access to the DB...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,208 views 2 13
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