-
Notifications
You must be signed in to change notification settings - Fork 17
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
[10.0.0] "User Search Attributes" does not search in those attributes #96
Comments
From rough research, old functionality was to call each user backend with the search: |
And @DeepDiver1975 for accounts table expertise |
IDEA: Do we need to pre-cache these search attributes in a accounts table column and let core search this column? Each backend provides a 'search' string with concatenated values? i.e: db users give '$email $displayname $userid' and maybe LDAP gives |
With owncloud/core#27832 we search displayname, user_id (login) and email which covers a lot of uses since ldap attributes are used to map these values. |
This is a regression which we cannot fix quickly. Why are all these different attributes necessary anyhow? |
This is a change in the behaviour, but it's consistent with the whole user page. All operations are performed against the account table. If we're listing whatever accounts are in that table, is perfectly fine that the search is performed against it. If this isn't fine, then we shouldn't list what is in the accounts table but ask each backend for the users. |
Perhaps, but yes, this is a change from previous behaviour, and we certainly should remove the UI + backend stuff that doesn't do anything. Can you take care of this? |
Talked with @DeepDiver1975 and @butonic about this and studied the use cases for the search attributes. Many cases are covered by the accounts table mapping of displayname, email and user_id. The only loss of functionality is where custom attributes are used that are not included in displayname, email and user_id. Suggest we do the following:
|
It does something. The |
I think we can postpone adding an additional search column because there is a workaround that should cover some cornercases: you can set the (2nd User Displayname Field)[https://doc.owncloud.org/server/10.0/admin_manual/configuration_user/user_auth_ldap.html#directory-settings] to anything you want, eg:
@cdamken searching by displayname, email or login should allow end users to find and distinguish all users they know. Why is it REALLY important that searching by @tomneedham We already have three ILIKEs in the query and I am starting to get concerned about the performance if 100000k accounts are in the table... did you by chance test the search performance in this case? |
It was just an example from testing with our AD, but customer uses attributtes like gecos, second last name, description, etc. |
@cdamken do you need to be able to find 'Alice' when searching by 'lic' or is it enough if your query always has to start like the possiple search terms. So 'Ali' to find 'Alice'. |
Actually owncloud don't do that now, otherwise the search will be like As an example from one of the customers: they use: Carlos Manuel Damken Castell
sn= Damken Looking for Manuel is not needed not. But, if so, they have to create an extra attribute. |
searching in additional search fields fixed in 10.0.1. for further improvements add new issues. |
Steps to reproduce it:
Add this attributes in
User Search Attributes
Expected behavior:
Look for :
8814486
who is theuSNChanged
attribute from one user and show that userActual behavior:
Look for :
8814486
who is theuSNChanged
attribute from one user andNo users Found
This is REALLY important to keep the same behavior as before!
@tomneedham @felixboehm @jvillafanez @butonic
The text was updated successfully, but these errors were encountered: