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