Bulk remove users from Confluence?
Asked by ITops123:

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.

QUESTION

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


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) **removeUser** action together with **runFromSql** or**runFromCsv**.

comments: author: Kjell Lauren
body: 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?


author: Annicka Rosengren
body: Hi

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:

<http://www.tieto.com/industries/telecom/tietos-solutions-network-equipment-providers/tietos-solutions-network-equipment-providers-rd-efficiency-excellence/development-platform-service/atlassian-services/atlassian-plugins>

BR

Annicka


author: Nathan Chere
body: 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.

comments: author: Bob Swift (personal)
body: 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.


author: William Wilson
body: What you were seeing was the start of the hell that is Atlassian Marketplace.

If Atlassian is going to outsource to a marketplace, they need to start adjusting their core licensing to reflect all the features we've lost to the marketplace.

Additionally, if more of these features are going to continue to be shunted to the marketplace, can we get licensing based on the number of users actually using the add-on?   

I sincerely do not want to pay $2500/year for an add-on based on my company's size, when maybe 2 others and myself will use it once or twice a year.

We have one add-on that is only used by a third of our company, but we are paying for the entire company to use it. That's not financially smart.

With all the upstart competitors that are at Atlassian's doorstep, it's time they figure all this out, or start losing larger and larger chunks of the market, to more affordable options. Yeah, we might lose some conveniences, but going from a $200k/y (or more) bill to one that is significantly smaller is becoming increasingly worth it.


author: David Haldane
body: I have found a non-plugin way to do this.

Nevermind, it's apparently been "patched."

comments: author: Megan Hutchinson
body: [@David Haldane](/t5/user/viewprofilepage/user-id/4053743) any luck finding another way to do this? Managing deletes one by one so painful!


Tags: user