Skip to main content
Solved

Get Managed Account API returns limited number of records

  • April 2, 2026
  • 6 replies
  • 50 views

Hello All,

We are trying to implement Rest API for different purposes. While executing Get ManagedAccounts API with powershell script, we found that it returns only first 1000 account records.

Do we know how can we increase this limit to get result for more records. We have around 11000+ records.

Thanks,

Prasad

 

Best answer by Pulitros144

@prasadp87 can you try using “{{biBaseURL}}smartrules/2001/managedaccounts” which “2001” is the ID for the “All managed accounts” smart rule, this one has not default limit, so it should return all managed account with api enabled checked.

6 replies

Pulitros144
Forum|alt.badge.img+5
  • Veteran
  • April 2, 2026

@prasadp87 Use the following:

$response = Invoke-WebRequest -Uri 'https://example.com/beyondtrust/api/public/v3/managedaccounts?limit=12000' -Method GET -Headers $headers

If works, mark as best answer please!


  • Author
  • Trailblazer
  • April 6, 2026

@Pulitros144  Thanks for sharing this.

I did change the limit -  “?limit=120000” but still I could see around 3000 accounts only. However, we have API enabled for most of the accounts.

I am not sure if I have to look for any other changes in the query parameter to make sure more accounts shown.

 

Thanks,

Prasad

 


Pulitros144
Forum|alt.badge.img+5
  • Veteran
  • April 9, 2026

@prasadp87 can you show me the query you are using? 


  • Author
  • Trailblazer
  • April 9, 2026

@Pulitros144 This as below- 

 

Note- {{biBaseURL}} is environment variable

 

{{biBaseURL}}ManagedAccounts?limit=120000

 

 

 


Pulitros144
Forum|alt.badge.img+5
  • Veteran
  • Answer
  • April 9, 2026

@prasadp87 can you try using “{{biBaseURL}}smartrules/2001/managedaccounts” which “2001” is the ID for the “All managed accounts” smart rule, this one has not default limit, so it should return all managed account with api enabled checked.


  • Author
  • Trailblazer
  • April 9, 2026

@Pulitros144  Thank you for sharing this.

 

The one with smart rule 2001 is working fine and giving the exact number of accounts with details. This is exactly we were looking for.

 

Appreciate your help in this!