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
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,523 views 25 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