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.

Questions:

  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: https://answers.atlassian.com/questions/98523/need-to-rename-group

Cheers

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.

Hello,

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
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,577 views 26 14
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