Jira API issue : This XML file does not appear to have any style information associated with it. The document tree is shown below

Hi,

I am trying to use the API GET /rest/api/2/user/groups, but when I put it in my browser (Google chrome", i have this error : This XML file does not appear to have any style information associated with it. The document tree is shown below.

PS: when i browse another API (rest/api/2/groupuserpicker) it is working.

404 null for uri: https://xxx.xxxx.com/jira/rest/api/2/users/search

How can i fix this issue please ?

Thank you,

Fiona

Hi @fionalebel,

Did you add an accountId query parameter? For instance, https://yourtenant.atlassian.net/rest/api/2/user/groups?accountId=some-account-id

Here is a link to the API documentation: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-groups-get

Regards,
Dugald

Hi,

In fact, the API doesn’t need a query parameter since it returns all the users.

Thanks,
Fiona