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

2 votes
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

Kavitha
Contributor
September 8, 2024

Hi @Lars Maehlmann , I have a question on usage of this API please,

When I call this API with Postman, I can see the links\next property, I was expecting a link to call the next page but surprisingly it is returning some different characters - please refer the attached image: 

OrgAdmin-Group.png

Not sure how to use this "next" in the query, I have tried to add as a query parameter "next=XXX" but it did not help. 

If possible, please help me here. 

Thanks,

Kavitha

Sylvain Gagnon
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!
September 8, 2024

You need to provide that value in the cursor value of the next request indicating the starting point of the list.

2024-09-08_20-55-33.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events