Skip to main content
Best Answer

How do I use the "filters" input on the GET /manage/v1/user endpoint?

  • February 15, 2024
  • 3 replies
  • 215 views

I am successfully connected to and pulling users from the GET /manage/v1/user endpoint, however, I want to make use of the optional "filters" input to limit the results to only Power Users or Super Admins. This means I have to filter on the "level" attribute of the user. Can anyone explain the syntax for this sort of filter? The API explorer gives the following description on the field: serialize object containing list of filters and their options. I have tried a few options, the only one I have gotten results for (no Internal Server Error), but still the filter does not seem to be applied is this:

[{"level" : {"criteria" : "not_equal", "value" : "user" }}]

I cannot get the syntax correct and keep getting Internal Server Errors otherwise. Any help or examples would be great!

Best answer by t3d4

Bfarkas wrote:

You were super close above, try this:

[{"level":{"option":"not_equal","value":"user"}}]

 

This worked for us, too - thank you!

View original
Did this post help you find an answer to your question?

3 replies

Bfarkas
Hero III
Forum|alt.badge.img+5
  • Hero III
  • 3582 replies
  • February 21, 2024

You were super close above, try this:

[{"level":{"option":"not_equal","value":"user"}}]

 


  • Newcomer
  • 1 reply
  • Answer
  • February 21, 2024
Bfarkas wrote:

You were super close above, try this:

[{"level":{"option":"not_equal","value":"user"}}]

 

This worked for us, too - thank you!


  • Author
  • Novice I
  • 3 replies
  • February 21, 2024

Thank you!

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings