Bulk remove users from Confluence?

I have copied over our production instance of Confluence to a sandbox environment in preparation for upgrading to Confluence 4.0. This, of course, includes the entire directory of users who have access to our Confluence production instance.

I need to keep email notifications on in the sandbox for testing purposes, but don't want users who are not participating in the testing to get notifications from this environment. What I'd like to do is bulk remove all users from the test instance and manually add in about 10 people who will actually do the testing.


Is there a way to bulk remove users? We have about 600 active users, so I don't want to remove them manually.

3 answers

1 accepted

Confluence Command Line Interface removeUser action together with runFromSql or runFromCsv.

Would there be some example of how to use the removeUser?

Or even better, is there a macro or plugin that could be used for bulk remove/deactivate users?

1) The link is dead.

2) Needing to pay for a plugin to do this is a cop-out.

3) The plugin, as far as I can tell, is no longer supported anyway.

This is a pain to deal with manually. How hard can it be to have a bulk disable screen where you check boxes or something and do them all in one batch instead of having to page through 800 odd users, open their details one by one and disable them manually?

Side-note: my original answer was more diplomatic but when you type in an answer then click the "log in or sign up to post" button, the subsequent login page doesn't take you back to the page you came from and you lose what you typed.

  1. Link updated. Atlassian has removed the old Plugin Studio, so old links will not re-direct anymore :(.
  2. You can do similar programming without cost. But the thing is it can be done if you want a solution. And you can certainly complain to Atlassian about the lack of a built in UI for it.
  3. Confluence CLI is supported.


We have a plugin that could be used for this purpose. It s also good to have in the future to ensure only active users have an active confluence license.

You can read more here:




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,404 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