The Confluence Cloud team has created 6 new Group APIs to enable site admins to perform CRUD operations on groups and group members. We are deprecating 2 existing Group APIs that are replaced by the new APIs.
During the deprecation period, the old APIs will still work, but we strongly recommend using the new APIs and we will redirect documentation links accordingly.
Instead of specifying the group name in path parameters /wiki/rest/api/group/{groupName}, group names can be specified in the query parameters when requesting to /wiki/rest/api/group/by-name?name={groupName}
It still does not seems to work. I have added all the scopes in Confluence app management page to my app.
And using the token generated, I am able to get the groups (https://developer.atlassian.com/cloud/confluence/rest/api-group-group/#api-api-group-get)
But using the same token, it still gives me 401 error for GET /wiki/rest/api/group/{groupId}/membersByGroupId
Could you please confirm if this is a limitation on the API’s using group Id and OAuth scope as I have tested the corresponding API with group-name parameters and those seem to work fine with OAuth using the same scope?
On the other hand, changing the url to : https://your-domain.atlassian.net/{api} with the Access Token generated, works fine for all the APIs including group-id and user APIs.
Please confirm if this is a planned change(not reflected in the document) or still under development?
@samsaas, thanks for the insight. This API was not part of the original announcement and still under development. I have contacted the team that created this API of your comments and will have them follow up when ready.
Hi @ccurti,
As per my testing then, although the response returned ‘401’, the issue was not the scope added to the app, but the Base URL itself.
As, switching the Base URL from api.atlassian.com to the org URL worked fine for all APIs then.
However, the case is not the same anymore. so this issue is not reproducible now.
Hi @SheetalShetty1 ,
Are the Confluence Cloud APIs not supporting org Url(domain URL) for OAuth2.0 (bearer token) anymore? Because I am facing this issue -
Base Url as mentioned in the documentation - api.atlassian.com is working but domain Url is not with OAuth 2.0 Authentication.