This article helps you to add space permission to spaces in bulk using Confluence Command Line Interface (CLI).
Instructions
Use the addPermissions action file add space permission to a group by providing the space details in a.csv file.
- Create a CSV file named space.csv with the list of users as required.
Execute the following CLI command to add VIEW permission for a group to spaces that are in space.csv file.
--action runFromCsv --file "space.csv" --common "--action addPermissions --permissions "viewspace" --group "supportgroup"" --continue
- Once the above command is executed the view permission is added to the spaces that are provided in the .csv file.
- Ensure the parameter group is updated respectively with the group name.
- Ensure that the CLI action is tested in your non-production environment before implementing the mentioned solution in the production environment.