This topic has 1 reply, 2 voices, and was last updated 3 years, 7 months ago by cbontemps.
-
AuthorPosts
-
September 13, 2018 at 4:47 pm #23184
jm89
ParticipantHi,
I’m trying to use the rest api to return managed users who have a certain relationship property(_refProperties).
For example below is an extract of the JSON for a user. Is it possible to write a query filter to return users who have the “customProperty” (inside_ refProperties) with value “test”?
{ "result": [ { "_id": "1234", "userName": "user1", "address": { "_ref": "managed/address/f7145ae2-d77b-4dcd-980f-67ddb8cddfbc", "_refResourceCollection": "managed/address", "_refResourceId": "f7145ae2-d77b-4dcd-980f-67ddb8cddfbc", "_refProperties": { "customProperty": "test" "_id": "8498f37c-61ba-48d6-918b-bb1fc9d342ea", "_rev": "0000000089eea504" } } } ] }
I tried writing the query like the below, but not too sure on the syntax.
http://openidm.example.com/openidm/managed/user?_queryFilter=roles/_refProperties/customProperty eq "value1"&_fields=userName
Any ideas how i would go about writing this query? I’m using opendj as my user store.
Thanks.
November 26, 2018 at 2:12 pm #23978cbontemps
ParticipantHi jm89
I am also interested by the answer. Did you get any lead on the question ?
Colin -
AuthorPosts
You must be logged in to reply to this topic.