ListUsers API does not return Link header for Pagination

Hi everyone,

I am consuming the {{url}}/api/v1/groups?q=a&limit=25 okta API in order to list all the groups for a particular query.

When the response is returned though the Link header is not included in the response headers in order to start the pagination again and as a result, the pagination doesn’t work. that was first discovered using the OKTA SDK for .Net (4.00).

Below is the query I’m using in curl format:

curl --location --request GET 'https://{{Deliberately_Removed}}.okta.com/api/v1/groups?q=a&limit=25' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{Deliberately_Removed}}' \
--header 'Cookie: JSESSIONID=F29E3DF3EB413582491485CA2C7861D8'```

Hello,

If your initial query returns less than 25 groups (in this case), then the link headers will not be present.

Find Groups doesn’t paginate: Groups | Okta Developer

You’d have to use search: Groups | Okta Developer

or filter: Groups | Okta Developer