UiPath API - how to add $filter to sub level property?


I’m using: odata/Folders/UiPath.Server.Configuration.OData.GetUsersForFolder
I’d like to see DirectoryRobots only.

Sure, I can pull all users and filter them client side, but:
Is there a way to add a filter to a sub level property server side?
(Full json below)

I’m looking for something like this:
$filter= UserEntity.Type eq ‘DirectoryRobot’

response_1676447767606.json (2.2 KB)

we tried on swagger:

Thx @ppr,
Did you find any documentation around this?

I’ve tried a couple of dividers, none of them works on 2021.10

UserEntity.Type eq ‘DirectoryRobot’
UserEntity/Type eq ‘DirectoryRobot’
UserEntity\Type eq ‘DirectoryRobot’

http code = 500
  "message": "An error has occurred.",
  "errorCode": 0,
  "resourceIds": null

As mentioned was done in swagger. Due to my limited testset i was able to validate the syntax and filtering to the empty result by test

the slash char is the confirmed one (Swagger 15)

tell us the offered swagger Version
also have a look at the expand

It was the browser flippin the single quotes from straight to grave.

This works, thank you!
UserEntity/Type eq 'DirectoryRobot'

Here I’m using HTML Special char: “&#039” to get them to display correctly.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.