- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
03-15-2019 12:01 AM
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....
03-15-2019 02:47 AM
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?
03-15-2019 03:09 AM
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
#etcI would raise a support case to get an authoritative answer.
03-17-2019 06:59 PM
we are on version 10.4
03-17-2019 07:24 PM
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 😅
03-17-2019 07:58 PM
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....
03-18-2019 05:43 AM
Honestly I really don't remember, its something I need to look into to see.
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!

