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

725 views 2 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