Symptom
How to query the next member page from Groups on SCIM API?
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Resolution
To get the next page you should get the parameter members.nextId, which is the startId of the next page:
Then, insert it to the query inside the attribute members, as follows: /scim/v2/Groups?attributes=members[startId="nextId"&count=100]
Please note that the URI, after Groups, must be encoded. Here's how the URL would look like in the end:
- Before encoding: /scim/v2/Groups?attributes=members[startId="05b2060-8568-9349-1700-022438dcdf96"&count=100]
- After encoding: /scim/v2/Groups?attributes=members%5BstartId=%2205b2060-8568-9349-1700-022438dcdf96%22&count=100%5D
Once this is done, you will receive the next page. In order to get all pages, subsequent API calls must be performed using the nextId of each page. Once you get to the last one, the nextId will be "end".
Keywords
scim, groups, group, nextId, members, attribute, count, tryout, startId, pagination, page, next , KBA , LOD-SF-INT-ODATA , OData API Framework , How To