pydio-core icon indicating copy to clipboard operation
pydio-core copied to clipboard

Feature request, search for users name

Open psy opened this issue 8 years ago • 3 comments

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?

psy avatar Sep 14 '16 14:09 psy

Hi, Normally it should actually search for both. What's your authentication backend? Standard sql ?

cdujeu avatar Sep 21 '16 07:09 cdujeu

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.

selection_142

selection_144

selection_145

psy avatar Sep 21 '16 12:09 psy

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;

7omate avatar Sep 21 '16 15:09 7omate