Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Get Organization Group List using the REST-APIs for Atlassian Admin

Wasiq Bin Zahid
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!
November 29, 2023

Good evening, I am referencing these docs

https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/

Here there are endpoints to create groups, delete groups and add users to groups, however I am not able to find a way to view the groups that I have created previously, or get details regarding these groups How would I get information regarding these groups? I have tried searching but haven't found anything. Is this on purpose? If yes, what would be the reason behind something like this? Any help would be appreciated Thanks

1 answer

1 vote
Lars Maehlmann
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 10, 2024

Hello @Wasiq Bin Zahid 

I am not sure if you still need the information but you can find the documentation here:

- https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v1-orgs-orgid-groups-search-post

Be aware it is not a GET. You have to do a POST Call. I use httpie and jq to generate a cvs list of all groups.

https -A bearer -a $TOKEN POST api.atlassian.com/admin/v1/orgs/$ORG_ID/groups/search | jq '.data[] | [.id, .name ] | @csv ' > groupIDs.csv

I hope this helps.

 

Cheers,

Lars

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events