BLUF (Bottom Line Up Front)
We have recently begun using dynamic groups synced from an external directory in confluence and jira, these groups are now being used for space permissions across confluence. As such I now need a way to bulk edit the space permissions for all of our existing spaces, both personal and communal. The most common change will be identifying spaces giving permission to the default "confluenceusers" group and instead give a new dynamic group (with a longer/more complex name) the same permissions. We have 100's of spaces so wanting to avoid doing 1 by 1.
(before anyone suggests not to do groups this way - its already happened and is a security request so just looking for solutions with our current set up :) )
Issues
Open to any suggestions of how to tackle this including via the API - while i don't possess the skills to do this change via the API i have a host of people that can lend a hand.
Hi @Dylan Moore
Space permissions can be set and removed via the API.
Not in bulk, you could write a script that contains all space keys and the use a variable to fill the API call for each space.
See API documentation: https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions/#api-wiki-rest-api-space-spacekey-permission-post
Thanks @Marc - Devoteam !
I'll discuss this solution with the team internally and will accept your answer once we've got it to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.