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.
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.
Hope that helps,
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
Thanks,
Avinash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. Looks like a good solution as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.