Moving a User from Confluence-Administrators to Another Group

I want to move our tech writers out of the "confluence-administrators" group to their own group. This is because there is no way to prevent members of "confluence-administrators" from downloading add-ons.

However, when I do this, I need to replicate the Space Permissions that they assigned to the "confluence-administrators" group.

Can I do this with the following SQL?...

INSERT INTO [confluence].[dbo].[SPACEPERMISSIONS] 
SELECT  [PERMID]
       ,[SPACEID]
       ,[PERMTYPE]
       ,'tech-writers'
       ,[PERMUSERNAME]
       ,[CREATOR]
       ,[CREATIONDATE]
       ,[LASTMODIFIER]
       ,[LASTMODDATE]
   FROM [confluence].[dbo].[SPACEPERMISSIONS]
  WHERE [PERMGROUPNAME] = 'confluence-administrators'

...or do I need to manually recreate the Space Permissions they set up?

TIA...Chuck

1 answer

1 vote
Davin Studer Community Champion Feb 10, 2014

Use the web interfce or the API to make a change like that ... bad idea to do it in SQL.

So, are you saying there's a way to do this in one fell swoop using the web interface, or through an API?

Or are you saying I have to do set up the permissions one-at-a-time?

Davin Studer Community Champion Feb 11, 2014

There are API methods for dealing with groups, users, and permissions. The link is below. Another option would be to use Bob Swift's Conflunce CLI (command line interface) utility to automate the process. He has options for iterating through a csv and performing actions for each line of the csv ... it might make the process a little easier.

https://developer.atlassian.com/display/CONFDEV/Remote+Confluence+Methods#RemoteConfluenceMethods-Permissions.1

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,921 views 27 12
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