Skip to end of banner
Go to start of banner

wip: How to add users to a group in Confluence using Run 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 helps you deactivate multiple Jira users in bulk using Jira Command Line Interface.

Instructions

  1. Use the action addUserToGroup with runFromCsv to add users to a group in bulk. 
  2. Create a .csv file (ex: all-users.csv) that contains userId, userName, Group of the users you wish to add. An example file is shown below: 
  3. Create a folder with page id (7962625) under the <confluence-home-dir>/script/cli/ directory.


  4. Copy the .csv file (ex: all-users.csv) to the following location <confluence-home-dir>script/cli/7962625
  5. Run the command below to add users to a group that are provided in the .csv file (all-users.csv, in this example):

    --action runFromCsv --file "all-users.csv" --continue --common "--action addUserToGroup --autoGroup" --continue

    The parameters used in the above action are:

    • file: Name (or path) of the file specified in the command.

    • common: Common parameter string added to all run actions.
    • continueThis parameter can be added, if the user does not exist, and you want the action to continue.

  • Make sure to run the command in a non-production environment before testing in a production environment.
  • Update the .csv file with the usernames appropriately.
  • This action is not available in Cloud. 
  • No labels