Skip to end of banner
Go to start of banner

How to add space permissions in bulk to a group using Confluence CLI

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

This article explains how to add space permissions in bulk to a group using Confluence Command Line Interface (CLI).

Instructions

Use the addPermissions action to add space permission to a group by providing the space details in a CSV file. 

  • --permission: contains the type of permission.
  • --group: Contains the group name.

Steps:

  1. Create a CSV file named space.csv with the list of users as required.
  2. 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
  3. Once the above command is executed,  View permission is added to the spaces that were provided in the CSV file.


  4. Ensure the parameter group is updated appropriately with the group name.


  • Ensure that the CLI action is tested in a non-production environment before implementing it in the production environment.
  • No labels