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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

900 views 23 12
Join discussion

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