REST API to get the default groups

Kavitha
Contributor
June 13, 2024

I use this API will give all the groups in the Atlassian.

https://yourdomain.atlassian.net/wiki/rest/api/group?start=0&limit=200

Response:

{

"results": [

{ "type": "group", "name": "confluence-admins-yourdomain", "

id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",

"_links": { "self": "https://yourdomain.atlassian.net/wiki/rest/experimental/group/confluence-admins-yourdomain" } },

{ "type": "group", "name": "confluence-user-access-admins-yourdomain",

"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",

"_links": { "self": "https://yourdomain.atlassian.net/wiki/rest/experimental/group/confluence-user-access-admins-yourdomain" } },

{ "type": "group", "name": "jira-servicemanagement-users-yourdomain",

"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",

"_links": { "self": "https://yourdomain.atlassian.net/wiki/rest/experimental/group/jira-servicemanagement-users-yourdomain" } }

]

}

Queries:

1. Is there a way identify the group is marked as default or not

2. As this API is taking the "wiki" in the request, surprisingly I can see the groups 

 

So my requirement is to pull all the default groups only, or identify a group is set as default or not.

Thanks in advance,

Kavitha

1 answer

0 votes
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 13, 2024

When I run the same API, I get all the groups in my org, regardless of product.  It does not have a field to determine if it's set as a default group. 

I was thinking you might be able to get more details once you have the group names by running a 2nd API call to get that group's details, but no that won't work.

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group/#api-group-group

Looking at each API call within Group, none of them return details on if it's set as a default group or not.

Kavitha
Contributor
July 8, 2024

Thanks for your reply, yes still trying to find our if there is a way.

Suggest an answer

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

Atlassian Community Events