How to download the list of members in a group

Amir Katz (Jira Admin) February 15, 2024

I have several groups in our Jira instance and I need to compare the memberships between those groups.

I could write a curl command (or a Python script) that invokes the REST API for 'Get users from group' and parse the results with jq, but I wonder whether there's a better way.

2 answers

1 accepted

1 vote
Answer accepted
Miguel Ramon February 15, 2024

Hello @Amir Katz (Jira Admin)! Miguel from ServiceRocket here.

Have you tried exporting users from the admin panel and selecting "group membership" under "additional data"? Is this a one time thing or do you need to fetch these procedurally at a certain time interval?

With the described option you'd get a full list of all users in the Cloud org with group membership which you could then filter through, if that works. You may need to select the "pivot" option.

Alternatively you can also select specific groups from which to get the exported list from as well.

{93270401-2E60-4DBE-9CC9-30AB8BCD66A2}.png

Hope that helps,

 

1 vote
Avinash Bhagawati _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2024

Hi @Amir Katz (Jira Admin)  Good day! 

With the help of Jira Command Line interface (CLI) app you will be able to achieve your requirements.

Please find below sample action

--action getUserList --group "testgroup2" --outputFormat 2

Also, CLI provides option to extract the data into CSV file. Also, you will be able to control the what user data you would like display in the file.

--action getUserList --group "testgroup2" --outputFormat 2 -- file userslist.csv

Please refer below document for more details.

https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70785560/getUserList

https://appfire.atlassian.net/wiki/spaces/JCLI/overview

https://marketplace.atlassian.com/apps/6398/jira-command-line-interface-cli?tab=overview&hosting=cloud

Thanks,

Avinash 

Amir Katz (Jira Admin) February 19, 2024

Thank you. Looks like a good solution as well.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events