I'm working on a set of PowerShell functions that will be used to manage our enterprise Box implementation. Right now I'm working on the groups section and can successfully return groups via the 2.0 API. However, it appears that the call to the groups API has a default limit of 100 - limiting the number of groups that are returned.
From the Box dev docs:
curl https://api.box.com/2.0/groups -H "Authorization: Bearer ACCESS_TOKEN"
returns
{
"total_count": 1,
"entries": [
{
"type": "group",
"id": "1786931",
"name": "friends"
}
],
"limit": 100,
"offset": 0
}
I need to get all groups in one fell swoop, or at least have a way to batch through all the groups. Is there a way to set the limit to either unlimited (I would assume 0) or at least higher?
For some context, our first push of groups will be around 235 groups, quickly followed by another 3,000+. I'll need to update these group memberships on a regular basis (hence the PowerShell module I'm building).