You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I tried Bob Swift's CLI command getUserList, then compared the output to the Export from the Admin interface, and alas, it misses a lot. (API calls the CLI uses are down at the end of this answer.)
acli jira -a getUserList --outputFormat 999 --file cliusers.csv
The resulting CSV only contains these columns:
|User||Key||Name||Time Zone||Avatar URL||Active||Groups||Account Type|
|Darryl Lee||12345:12ab3c45||Darryl Leeemail@example.com||America/Los_Angeles||https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:55df3d50-d179-4d17-b747-bf1484246c4f/76f52fda-5bf0-4d68-acb5-c032a63e755a/48||Yes||administrators,jira-administrators,jira-developers,shift2,site-admins||atlassian|
And it only contains ACTIVE or INVITED user accounts, whereas the export from the Admin interface includes SUSPENDED accounts. Additionally the CSV has many many more columns, and optionally creates a row for each Group/User, allowing for easier group sorting.
|Group id||Group name||User id||User name||User status||Added to org||Org role||Last seen in Jira Service Management - boomaster||Last seen in Jira Software - boomaster||Last seen in Confluence - boomaster||Last seen in Team Central - boomaster||Last seen in Statuspage - boomaster||Jira Service Management - boomaster||Jira Software - boomaster||Confluence - boomaster||Team Central - boomaster||Statuspage - boomaster|
|firstname.lastname@example.org||Suspended||17-Nov-21||None||Never accessed||Never accessed||Never accessed||Never accessed||Never accessed||User||User||None||None||None|
So, it kind of depends on what you need.
I used the --verbose flag on getUserList and was able to see the API commands that CLI uses. Basically it's getting a list of users, then iterating through each one to get their group memberships: