Get all accounts using REST API??

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Get all accounts using REST API??

L3 Networker

Dear mates, have you ever tried retrieving all accounts using REST API.

 

{{PVWAURL}}/PasswordVault/api/Accounts?limit=20 even throws the follwoing error

 

only when i set limit=10, it returns 10 accounts to me. we have 60000 accounts, crazy....

7 REPLIES 7

L3 Networker

0682J0000063JmXQAU.jpg

L4 Transporter

Well, I'm not sure. For a while there was a json limit to how many accounts the REST can return to you, which was 10 :).

 

I remember someone telling me that the newer version of the vault don't have that limit anymore, but I've never tested it.

What version are you on?

I heard of a few other people facing the same issue, anecdotally it appears to be caused by one of the results in the result set, but am not aware of any resolution.

 

You could try to use the Limit & Offset parameters to work past it:

{{PVWAURL}}/PasswordVault/api/Accounts?limit=10&offset=10 {{PVWAURL}}/PasswordVault/api/Accounts?limit=10&offset=11 {{PVWAURL}}/PasswordVault/api/Accounts?limit=10&offset=12 #etc

I would raise a support case to get an authoritative answer.

we are on version 10.4

good catch! By setting the the offset to skip a few accounts, i was able to retrieve more accounts after that. Interesting, how could this happen? it will be a big headache for developers 😅

I got a report from PVWA, and spent some time on searching all accounts that i can search in REST API, and finally found 2 accounts suspicious.

 

I renamed these 2 account with different objects names and removed them, and then add them back. This time i could get all accounts with REST API....

Honestly I really don't remember, its something I need to look into to see.

  • 844 Views
  • 7 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!