Searching for users with web services

espanae's Avatar

espanae

06 Oct, 2015 08:49 PM

While using Wing's web services library to list all Cascade users, we encountered issues similar to christianco, including:

  • returning one user when calling $users = $cascade->getUsersByName( '*' );

...despite having fewer than 250 users and not having usernames with spaces. Rebuilding the search index resulted in 0 results being returned and our best guess is that the problem was related to our LDAP implementation.

The search is working now and we think a Cascade restart might be to thank.

Erik

  1. 1 Posted by Ryan Griffith on 07 Oct, 2015 08:17 PM

    Ryan Griffith's Avatar

    Hi Erik,

    Definitely interesting, and it doesn't look as though we ever narrowed down a cause in Christian's case.

    The Web Services search using * should return the exact same as using the Advanced Search feature in the UI. What kind of results are you seeing if you try searching for asset name * and only check the "Administration Area Assets" within the UI?

    Thanks!

  2. 2 Posted by espanae on 08 Oct, 2015 07:47 PM

    espanae's Avatar

    Hey Ryan,

    Since restarting our server, we're getting the same results searching for asset name * from the Advanced Search tab with Users checked, as we do with the web services * search.

    If the issue comes up again, I'll try the UI search, see what it returns and reopen this discussion, if necessary.

    Thanks.

  3. espanae closed this discussion on 08 Oct, 2015 07:49 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM