Confluence REST API and group name with "/"

Hi,
I’m getting errors in my app when a Confluence group name contains a “/” (forward slash).

I.e. a group called “ateam/intro”.

When I do a call to the Confluence API, with the URI:
https://your-domain.atlassian.net/wiki/rest/api/group/{groupName}
i.e. https://your-domain.atlassian.net/wiki/rest/api/group/ateam/intro, I get back a 404 response, as the forward slash in the group name is interpreted as a path.

Am I supposed to use encodeURIComponent() on the group name? Asking because I get the group names from Confluence from another API call in JSON. And I want to avoid errors due to using the wrong encoding. Unfortunately I could not find any information in the documentation.

Further research has shown that groups with names containing a slash are not accessible through the REST API, both with escaped and unescaped slashes.

Opened a bug report with Atlassian on the issue.

Hi @atlassiandev,

Can you please share the ticket with us?

Cheers,
Anne

Hi @acalantog , thanks for checking.
The ticket is https://ecosystem.atlassian.net/servicedesk/customer/portal/14/DEVHELP-3539

Hi @acalantog , were you able to reproduce the issue?