---
title: "Adding users in bulk to ServiceDesk organizations using CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89139951/Adding%20users%20in%20bulk%20to%20ServiceDesk%20organizations%20using%20CLI"
format: markdown
---
<span style="color: #000000">This article helps to add users </span><span style="color: #000000">in bulk</span><span style="color: #000000"> to ServiceDesk organizations.</span>

## <span style="color: #000000">Instructions</span>

<span style="color: #000000">There are two methods to add users in bulk to ServiceDesk organizations using the </span>*<span style="color: #000000">addOrganizationUsers </span>*<span style="color: #000000">action. The addOrganizationUsers action has the following fields:</span>

- *<span style="color: #000000">organization</span>*<span style="color: #000000"> - </span><span style="color: #000000">contains the names of the organization</span>
- *<span style="color: #000000">participants</span>*<span style="color: #000000"> - contains the list of users to be added to the respective organization.</span>

### <span style="color: #000000">Add existing Jira users to organizations</span>

1. <span style="color: #000000">Create a file named as </span>*<span style="color: #000000">organization.csv</span>*<span style="color: #000000"> with the following values for the fields:</span>  
> Macro (inline-media-image)
2. <span style="color: #000000">Execute the following CLI command to add the users to the respective organizations:</span>

<span style="color: #000000">Add non-existent users to an organization</span>

1. <span style="color: #000000">Execute the following command to add users to your Jira instance by providing </span>*<span style="color: #000000">userId</span>*<span style="color: #000000"> and </span>*<span style="color: #000000">userEmail</span>*<span style="color: #000000">:</span>
2. <span style="color: #000000">Create a .</span>**<span style="color: #000000">csv</span>**<span style="color: #000000"> file with the </span>*<span style="color: #000000">organization</span>*<span style="color: #000000"> and </span>*<span style="color: #000000">participants</span>*<span style="color: #000000">. For this example, the file is named as </span>*<span style="color: #000000">organization.csv</span>*<span style="color: #000000">.</span>  
> Macro (inline-media-image)
3. <span style="color: #000000">Execute the following CLI command to add </span><span style="color: #000000">the newly created </span><span style="color: #000000">users to the respective organizations:</span>
4. <span style="color: #000000">Add users of a group to the organization with the following CLI command: </span>
  <span style="color: #000000">The command adds all the users of the group </span>*<span style="color: #000000">Test </span>*<span style="color: #000000">to the </span>*<span style="color: #000000">Example Gear 2</span>*<span style="color: #000000"> </span><span style="color: #000000">organization.</span>