Confluence LDAP - How to change all permissions for one group to another?

I'm having a very large Confluence installation, where one very large group (say group A) is synchronized from LDAP. We now have a second group (say group B) that has the same users in LDAP and is synchronized with Confluence as well. We are now searching for the best way to change all permissions in Confluence associated with group A to group B. Afterwards, we aim to delete group A in LDAP. This is essentially a way to rename the group A to B.


  1. Is this a proper strategy or is there a better way to achieve this?
  2. If it's a good way, what SQL statements do we have to perform? At the moment, I assume the tables CONTENT_PERM and SPACEPERMISSIONS are affected? Are there more?

Our environment:

  • Confluence 5.1.5
  • Windows Server 2008 R2 Standard
  • MSSQL 2008

Thank you very much in advance for any hints!

6 answers

Hi, I belive you're in the same situation is this other question:


I do not understand. The answer marked as solution says I should run this SQL:

Update cwd_group set group_name='<new_group_name>', lower_group_name='<new_group_name>' where lower_group_name='<old_group_name>';

However, this won't touch any permissions in the CONTENT_PERM and SPACEPERMISSIONS tables. So these will still point to the old group. Or am I missing something? Actually I do not really want to "rename" a group. I want to change all group permissions of one group to another.

No ideas?

0 votes
Davin Studer Community Champion Apr 21, 2014

You might be able to do this in a better fashin than with SQL. The official API's can do this kind of thing. I qwould recommend looking into the Confluence Command Line Interface as it implements those API's in an easy to use fashion.

I actually solved this problem using my initial approached described in the question. All other methods seemed inadequate.


Could you provide the script you used to get this done. I have the same problem however the scrip provided in JRA-1391 is not particularly working for me.

Thank you!

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...

275 views 2 10
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