Open moschlar opened 4 months ago
From the admin side of things, I would like to have a configurable option to specify how many results the search function shall return (currently hardcoded to 10)
When we design the feature, we think there will not be too many people with same name. When a user refine the search characters, there should be less and less people matching. So I think 10 is enough. If it does meet your case, please send us more information regarding the issue.
Since we're having quite a huge amount of users from different institutions, the need for more advances user search functionality has arisen!
Specifically, a user asked whether searching for a user in the sharing dialog (and thereby using the
search-user
API) can be augmented to also search in the institution field.Now I understand that it might be difficult to simply use all words from the search query string to also search for institutions as that would be kind of fuzzy. Maybe a more easy and useful solution would be to simply add a checkbox to toggle whether to search users only in the own institution (or a selection listing all available institutions?)?
From the admin side of things, I would like to have a configurable option to specify how many results the search function shall return (currently hardcoded to 10).
FWIW, as a small workaround for convenience, I added the following custom function, which tries to at least sort the list such that users from the own institution (or having the same email domain) are listed first: