Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User search in admin/groupadmin panel only on uid #1749

Closed
hregnier opened this issue Oct 14, 2016 · 4 comments
Closed

User search in admin/groupadmin panel only on uid #1749

hregnier opened this issue Oct 14, 2016 · 4 comments
Labels
enhancement feature: users and groups good first issue Small tasks with clear documentation about how and in which place you need to fix things in.
Milestone

Comments

@hregnier
Copy link

My 30K users is imported from an old ldap, some of them have a random uid and I can search them only by their full name. But when an admin or a groupadmin search with the top bar searchbox, the search is only on uid.

For a quick fix, i juste change in settings/Controller/UsersController.php
L:252 $batch = $this->userManager->search($pattern, $limit, $offset);
to
L:252 $batch = $this->userManager->searchDisplayName($pattern, $limit, $offset);

But im not pleased with it, because uid search can't be done. Is it possible to override all this process to make search on both criteria ?

@nickvergessen nickvergessen added enhancement good first issue Small tasks with clear documentation about how and in which place you need to fix things in. feature: users and groups labels Oct 14, 2016
@juliusknorr
Copy link
Member

I like the idea, searching by users email would also be nice.

@blizzz
Copy link
Member

blizzz commented Oct 24, 2016

@hregnier
Copy link
Author

@blizzz no. I do not user LDAP Backend. By the way, if I understand the app, the user search attribute is useful for serching user in the LDAP, not in nextcloud. That's not what i want to do.

@MorrisJobke
Copy link
Member

Fixed with #7169

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature: users and groups good first issue Small tasks with clear documentation about how and in which place you need to fix things in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants