stormbringer79 Absent Member.
Absent Member.
1528 views

Searching multiple attributes, returning ANY match?

Hey guys.

I'm currently working on a tool to check for duplicates Before creating new users.

I have tried using the /gwadmin-service/list/user?name=username which works fine for a single attribute, or to use multiple with /gwadmin-service/list/user?name=username&givenname=firstname etc.

What i would want to do, is search let's say 3 attributes, return objects matching ANY of them. Anyone got an idea on how?
Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Searching multiple attributes, returning ANY match?

"https://10.10.10.10:9710/gwadmin-service/list/user?filter=name eq 'jlennon' or surname eq 'lennon' or givenName eq 'john'"

Depending on your application, you may have to escape the space chars, but be sure to encapsulate the values with ' '



--Morris




>>> stormbringer79<stormbringer79@no-mx.forums.microfocus.com> 3/4/2016 3:16 AM >>>







Hey guys.




I'm currently working on a tool to check for duplicates Before creating

new users.




I have tried using the */gwadmin-service/list/user?name=username* which

works fine for a single attribute, or to use multiple with

*/gwadmin-service/list/user?name=username&givenname=firstname* etc.




What i would want to do, is search let's say 3 attributes, return

objects matching ANY of them. Anyone got an idea on how?







--

stormbringer79

------------------------------------------------------------------------
stormbringer79's Profile: https://forums.novell.com/member.php?userid=155212


View this thread: https://forums.novell.com/showthread.php?t=497187
0 Likes
stormbringer79 Absent Member.
Absent Member.

Re: Searching multiple attributes, returning ANY match?

That is awesome!

Thank you Morris! 😄
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.