Hey, display names are not unique.
getUsers returns internal names while getDisplayNames returns display names. Internal names are unique. Cheers Arthur On 02/18/2013 04:24 PM, Andreas Ergenzinger wrote:
Hello, Since user selection for sharing and most other activities is supposed to be based on the display name from now on, the answer to my question should obviously be "yes". However, after looking at the OC_User class as well as the associated user backend and interface classes, I am not sure that this uniqueness is enforced anywhere. Am I missing something, or do we need a displayNameExists($displayName) function in the user interface? I am also not sure about the future role of the getUsers($search = '', $limit = null, $offset = null) method, apart from providing a list of all users if no search parameter is specified. It seems to me that the function is completely replaced by getDisplayNames($search = '', $limit = null, $offset = null) in all other cases. Besides backward compatibility, is there another reason for needing approximate search of uids/login names? Andreas _______________________________________________ Owncloud mailing list [email protected] https://mail.kde.org/mailman/listinfo/owncloud
_______________________________________________ Owncloud mailing list [email protected] https://mail.kde.org/mailman/listinfo/owncloud
