Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bulk update Confluence cloud space permissions with script runner

Stephen January 11, 2024

Hi all,

I currently have a requirement to write a script that can update space permissions In bulk.

Specifically I would like to update the space permissions for all or most of my spaces with a number of groups.

For example, I would like to add group A, B, C, with permissions to a large number of spaces.

Has anyone achieved this with Scriptrunner for Confluence Cloud? 

Thanks...Stephen

 

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Champion
January 11, 2024

Hi @Stephen ,

you can write a script that use the following confluence rest api (https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions/#api-wiki-rest-api-space-spacekey-permission-post). 

Another possible solution is to try https://marketplace.atlassian.com/apps/284/confluence-command-line-interface-cli?tab=overview&hosting=cloud that should allow you to implement that script.

Hope this helps,

Fabio

Stephen January 12, 2024

Hi @Fabio Racobaldo _Herzum_ , thank you for your reply. I have Scriptrunner for Confluence Cloud installed and am looking to run a script from there.

I was wondering whether anyone had any example Scriptrunner cloud scripts they have used in the past for similar requirements.

Thanks,
Stephen

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events