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.



Find answers from the community.

Ask a question to the community.

Log a request with our support team.


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.