cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Please note that Remote Expert Mobile announced end-of-life and support will end on February 28, 2022.
1035
Views
7
Helpful
7
Replies
Highlighted
Rising star

LDAP syntax for GetLdapUsers - contains?

The Web GUI allows me to search for "contains", "matches" and "begins with".

Matches seems to map to "is", begins with is "beginswith", but what is contains?

7 REPLIES 7
Highlighted
Cisco Employee

Hi Stephen,

Perhaps "matches" is an exact match, but "contains" is a match where the value can anywhere in the string.

Where in the web GUI do you see this? I could not find an example of "matches".

Thanks,

Adrienne

Highlighted

No idea how I got to "matches"... the dropdown in the unity admin interface lists "Begins With", "Contains" and "Is Exactly"

cucn-search.PNG

So I guess I meant "Is Exactly".

Highlighted

So.. what is "contains" then in the api?

Highlighted

Contains means the string can be found at any place in the value.

For example, let's assume these are all of the aliases for an end user in the database: sue, joe, suesmith, suejoesmith, and smithjoe.

If you search for an end user where alias contains joe, then your search results will provide the aliases joe, suejoesmith and smithjoe. It's similar to using a wildcard (*) like this: *joe*

Thanks,

Adrienne

Highlighted

And whats the syntax I send to the api? Can you show me the full URI you'd make to get a list of ldap users whose alias contain 'joe'?

Here's the Syntax I use to get ldap users whose alias starts with Joe:

query=(alias startswith joe)

This is if I want the user whose alias is 'Joe':

query=(alias is joe)

And now, what do I write instead of 'startswith' and 'is' if I want to have all users whose alias contains Joe?

Highlighted

I have verified there is no "contains" query available in the API. It is only available through the UI.

Highlighted

Does anyone know if "contains" has been added to the API?

Content for Community-Ad

This widget could not be displayed.