Adding users in bulk to ServiceDesk organizations using CLI
This article helps to add users in bulk to ServiceDesk organizations.
Instructions
There are two methods to add users in bulk to ServiceDesk organizations using the addOrganizationUsers action. The addOrganizationUsers action has the following fields:
- organization - contains the names of the organization
- participants - contains the list of users to be added to the respective organization.
Add existing Jira users to organizations
- Create a file named as organization.csv with the following values for the fields:
Execute the following CLI command to add the users to the respective organizations:
--action runFromCsv --file "organization.csv" --common "--action addOrganizationUsers" --continue
Add non-existent users to an organization
Execute the following command to add users to your Jira instance by providing userId and userEmail:
--action addUser --userId "captcha" --userEmail "captcha@x.com" --continue
- Create a .csv file with the organization and participants. For this example, the file is named as organization.csv.
Execute the following CLI command to add the newly created users to the respective organizations:
--action runFromCsv --file "organization.csv" --common "--action addOrganizationUsers" --continue
Add users of a group to the organization with the following CLI command:
--action runFromUserList --group "Test" --common "--action addOrganizationUsers --organization "Example Gear 2" --participants @userId@"
The command adds all the users of the group Test to the Example Gear 2 organization.
Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2022 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.