Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I adjust this Crowd Datacenter Bash script to pull groups with users.

haneen.m.elsaad
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 20, 2025

I am writing a bash script (attached it the script snippet). I was able to pull the crowd groups, but I want to also be able to pull all users within those groups as well. Is there a way to do so?

curl -s -k -u test:west \
-H "Accept: application/json" \
"https://crowd-dev-gc.nasawestprime.com/crowd/rest/usermanagement/latest/search?entity-type=group" \
| jq -r '.groups[].name' > groups_only.csv

1 answer

0 votes
Edwin Kyalangalilwa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2025

Hi @haneen.m.elsaad - I would recommend the atlassian-python-api library, where you first fetch all members of a group and then loop through each member to retrieve their details.

https://atlassian-python-api.readthedocs.io/crowd.html

# Get group's members
crowd.group_members(group, kind='direct', max_results=99999)

# Get user
crowd.user(username)

 

Suggest an answer

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

Atlassian Community Events