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

This widget could not be displayed.

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.

This widget could not be displayed.

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.

This widget could not be displayed.

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
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

602 views 8 6
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