Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence Server - Pagination not working for group endpoint.

navendu gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2018

GET /rest/group

Get a paginated collection of user groups

 

With start=0, i get 9 groups.

With start=100, i still get 9 groups.

Any insights would be highly appreciated.

 

 

1 answer

1 vote
Shawn C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 21, 2018

Hi navendu, 

It sounds like you might have the "limit" parameter when using the Confluence API to query for your Groups, however I'd need a bit more information about what you're seeing:

  • What the complete API Call you're running?
  • Are you running it CLI or through a tool?
  • How many groups are in Confluence?
  • Is there any difference in the Groups Returned when you run start=0 and start=100, or are they all the same Groups?
  • What version of Confluence are you running?

Regards,
Shawn

navendu gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 23, 2018

Hi Shawn,

Thanks for the quick reply.

 

What the complete API Call you're running?

url = "%s/rest/api/group?start=%s&limit=100" % (base_url, start)

 

Are you running it CLI or through a tool?

via python tool

 

Is there any difference in the Groups Returned when you run start=0 and start=100, or are they all the same Groups?

Same set of groups is returned.

 

What version of Confluence are you running?

1000.0.0-0aa1a5a4a7a

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<manifest>
<id>b836767a-6026-3b90-bc01-c45afb278251</id>
<name>Confluence</name>
<typeId>confluence</typeId>
<version>1000.0.0-0aa1a5a4a7a</version>
<buildNumber>6452</buildNumber>
<applinksVersion>7.0.1</applinksVersion>
</manifest>

 

Thanks

Navendu

Shawn C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 24, 2018

Hi Navendu, 

Thanks for the info; since it looks like you're on our Cloud Platform, it helped me to find the following Bug: https://jira.atlassian.com/browse/CONFCLOUD-62418

We're tracking an issue with the Cloud API when returning groups where it's ignoring the specified start query parameter and return the list from the start (index = 0). 

I don't have an ETA or a workaround to this issue however I do see that it has been acknowledged by our Confluence Dev Team.  To receive updates on this Bug, I do ask that you include yourself as a Watcher and include any feedback for our Developers letting them know how this impacts you and your team. 

If you have any other questions about this request, please let me know. 

Regards,
Shawn

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events