pydio-core
pydio-core copied to clipboard
Feature request, search for users name
When searching for a user (for example if you want to share something) the search only affects the ID of the user (if i am right this defaults to the users emailaddress). Not realy helpful if the IDs of your users are something unknown to the others.
Would it be possible to change the search to also include the name (and maybe other profile fields)? Or is there something i am missing?
Hi, Normally it should actually search for both. What's your authentication backend? Standard sql ?
It does not, as you can see in the attached screenshots. I setup a new test installation of pydio from the debian repositories (Version 6.4.2) to verify it. I also attached a screenshot of the user completer settings. The storage backend is mysql.
Indeed that didn't make it to develop, c.f. @c12simple
Seems to work:
https://github.com/pydio/pydio-core/blob/develop/core/src/plugins/core.conf/AbstractConfDriver.php
line 1162:
$allUsers = UsersService::listUsers($baseGroup, $regexp, 0, $limit, false);
$allUsers = UsersService::listUsers($baseGroup, "^", 0, $limit, false);
// why use limit here?
uncomment line 1263:
//if($regexp != null && ! (preg_match("/$regexp/i", $userId) || preg_match("/$regexp/i", $userLabel)) ) continue;
if($regexp != null && ! (preg_match("/$regexp/i", $userId) || preg_match("/$regexp/i", $userLabel)) ) continue;