/
How to get the list of users and their roles for all Jira projects using Jira Command Line Interface (CLI)

How to get the list of users and their roles for all Jira projects using Jira Command Line Interface (CLI)

This article explains how to get the list of all users and their respective roles for all Jira projects using Jira Command Line Interface (CLI).

Instructions

You must combine the following two actions to get the required information:

  1. runFromProjectList
  2. getProjectRoleActorList 

Use the following command:

--action runFromProjectList --common "--action getProjectRoleActorList  --project @project@  --role "@all" --file AllProjectsroles.csv --append"

The command uses:

  • Additional parameters such as:

    • file parameter: Write the output data into a file rather than displaying it on the screen.
    • append parameter: Append the output data to an existing file.
  • AllProjectsroles.csv file to which the output is written into.

It is recommended to test this scenario in a non-production environment or run the action with the --simulate parameter to verify the behavior before deploying.

Related content