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
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.