How it works...
The command-line client that we used to run the addUserWithFile command uses Jira's remote APIs to interact with Jira. Jira exposes many of its core functionalities via these APIs, such as the ability to create new users and issues.
When we run the addUserWithFile command, we pass in the CSV file that contains our new users, formatted in a way that the command-line client is able to understand and make an API call to Jira to create those users for us.
However, take note that the same security rules apply when using these remote APIs (with or without the command-line client). So in our case, since creating new users is an administrative task, we need to provide an administrator account in the command.
The Jira CLI app can do ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access