0 votes

Hello! We are currently trying to use the REST API to search for all group objects in our domain, but the search result is only returning 1000 objects. We tried supplying a larger number to the sizeLimit query parameter, but we're still getting a maximum of 1000 objects despite having significantly more group objects than that. We're able to retrieve fewer than 1000 objects when we give a lower number, like 10, so I don't think the problem is with the syntax of the request.

Is there a way to retrieve more than 1000 objects using the REST API?

by (320 points)

1 Answer

0 votes
by (270k points)

Hello,

Unfortunately, there is currently no possibility to overcome the limit when performing a search using Adaxes REST API. The only workaround is to make multiple requests. This is a known behavior and we will address it in the next major release.

0

Hello,

The new version of Adaxes where the REST API search limit was addressed is released. You can download it from here.

What’s New

Upgrade instructions

0

My question is where is the example on how to make multiple requests to get the full list of members?

How do you get the first 1000? And then the next set and so on. What are the parameters to be able to do this? I do not see it in the Adaxes API documentation. Also, there isn't any mention in the documentation about the size limit and there should have been.

I think we are still on Adaxes 2021. At least that is what the Administration Console says. I don't know when we are planning to upgrade.

0

Hello,

How do you get the first 1000? And then the next set and so on. What are the parameters to be able to do this?

There is no such possibility in any version of Adaxes.

I think we are still on Adaxes 2021.

The feature is not available in your version of Adaxes.

Also, there isn't any mention in the documentation about the size limit and there should have been.

That is not correct. Here is what the parameter description says:

The maximum number of objects to retrieve. If not specified, every object that matches the search criteria will be retrieved.

You can find that information in the corresponding article: https://adaxes.com/sdk/REST_SearchDirectory. There is a similar parameter description in the article for the get group members request. As such, you can leave the parameter unspecified to retrieve all the objects independently on the number.

0

Thanks for answering my question. It is unfortunate in the older versions (the one we are on) has a limit of a 1000 members. That is the maximum that is returned.

And yes while the documentations does say what you have there, it's just not true for the older versions. Since there is a limit of 1000, it should state that.

Also, you answered the original poster with this:

The only workaround is to make multiple requests. This is a known behavior and we will address it in the next major release.

And that was my question about your answer to the OP. How do you make multiple requests to eventually get ALL of the members of a group over 1000. Thanks.

0

Hello,

And yes while the documentations does say what you have there, it's just not true for the older versions. Since there is a limit of 1000, it should state that.

That is not correct. There is a link to the article for version 2021.1 in the beginning of the Search directory article. image.png

How do you make multiple requests to eventually get ALL of the members of a group over 1000.

The approach is totally up to you. For example, you can first get members whose name starts with A, then with B, etc.

Related questions

0 votes
0 answers

Hello We are using the REST API with the Business Unit method to get all our users in once, and it works really well, the API return around 150 in a second when ... proper way with Adaxes REST API to read the current expiration time for all accounts? Thanks

asked Jun 25, 2022 by ygini (240 points)
0 votes
1 answer

Hallo, I'm trying to build a function that will have two parameters $Containrer and $Filter $filter - is a LDAP filer that serach some specific objects $Containrer - is a ... is treated by powershell as a hash table, is it possible to workoroud it somhow?

asked Aug 12, 2015 by axmaster (510 points)
0 votes
1 answer

Using the powershell module, I know how to create a scheduled task, and also how to bind to a scheduled task that is already known. I also have used code to try creating ... same time as another. These are all one-time tasks and will be removed once executed.

asked Jan 19 by aweight (40 points)
0 votes
1 answer

Hello, We encoutered an issue with Adaxes in default configuration. We are mainly using Adaxes for its REST API, to automate identity lifecycle with our HRIS. We tried to update ... got enforced even on an API REST attribute change? If so how to disable it?

asked Aug 18, 2022 by ygini (240 points)
0 votes
1 answer

Is it possible to add multiple members to a group in a singe call to the REST API? The example code only shows a single member. What would the data structure look like in that case?

asked Dec 13, 2021 by swengr59 (60 points)
3,326 questions
3,026 answers
7,727 comments
544,683 users