Delete multiple Confluence Groups at once

Our instance of Confluence is pointed at an external LDAP directory that contains several hundred LDAP groups. We are using the auto-provisioning feature that provisions/creates a new user account in Confluence when the user successfully authenticates against the external directory. Along with the user accounts, all the users' LDAP groups are imported into Confluence as well.

All well and good, as this is the user provisioning solution we want. However, in hindsight it's clear that we chose the wrong LDAP directory and now have several hundred LDAP Groups that clutter the management interface. Going forward we have implemented a Group filter (LDAP query) in Confluence that will ensure we only import the LDAP groups we want. But we still need to delete all the excess Confluence Groups. Is there a way to delete multiple groups at once instead of going one-by-one through the admin user interface?

We would certainly appreciate any thoughts. Thank you.

1 answer

1 accepted

1 vote
Answer accepted
Timothy Chin Community Champion Aug 14, 2014

I'm not sure whether this will work or not. But make sure you have not allowed Confluence to edit the LDAP. You can then use Confluence CLI ( to delete them all at a go.

The Confluence Command Line Interface add-on appears to be a solid option, however I do not have any information at this time about whether CLI supports the specific "mass delete" functionality we are interested in. I have passed the CLI option along to the team managing our instance of Confluence, but for now we have decided not to pursue this inquiry further. Timothy, thank you for the lead. Perhaps in the future, we will dive back in and take a deeper look.

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,479 views 4 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