REST API OData filter

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

REST API OData filter

L2 Linker

I'm utilizing the REST API to pull all vaulted accounts (/PasswordVault/api/Accounts). Using the OData filter "safeName eq SafeName" returns accounts vaulted in a particular safe. However, when using "safeName ne SafeName" returns a "400 Bad Request" with the following error code:

 

"ErrorCode": "PASWS276E"

"ErrorMessage": "The format of the given filter is not supported."

 

The request looks like this:

https://<FQDN>/PasswordVault/api/Accounts?filter=safeName ne <SafeName>

 

I do not want to include accounts in the PasswordManager_Pending safe, but would rather not modify the permissions on the safe each time I need to run the script.

We're running 11.6 across the board.

 

Any help is appreciated...thanks!

1 REPLY 1

L4 Transporter

​believe 'eq' and 'gte' are the only operators for the filter parameter which are currently supported.

  • 666 Views
  • 1 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!