/
Adding users in bulk to ServiceDesk organizations using CLI
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.
Related content
How to add users to groups in bulk
How to add users to groups in bulk
More like this
Create bulk users in Jira using Jira Command Line Interface (CLI)
Create bulk users in Jira using Jira Command Line Interface (CLI)
More like this
How to create bulk users in Bitbucket using Bitbucket Command Line Interface (CLI)
How to create bulk users in Bitbucket using Bitbucket Command Line Interface (CLI)
More like this
Resolve the remote error while adding user to a group using CLI
Resolve the remote error while adding user to a group using CLI
More like this
How to Bulk Update User Information
How to Bulk Update User Information
More like this
[Internal] How to bulk associate
[Internal] How to bulk associate
More like this