Skip to content

How to distinguish two users with the same name before sharing? (eg. the mail adresses could also be displayed) #512

Closed as duplicate

Description

@jpggithub

My university uses nextcloud/circles.

Some students have the same exact name (firstname and lastname) than some teachers.

When I want to share a folder with this kind of users, the list only display the name of the users (firstname and lastname).

For example, the list displays something like:

  • John Doe
  • John Doe

How can I choose the right one?!

A solution could be to display a list like this:

or

Activity

  1. cdisabatino commented on Jun 29, 2021

    @cdisabatino

    Hello.
    I had the same need. I made the following changes to display the email address in addition to the name. I also display the ID in the "title" html attribute, it is displayed when hovering over the mouse. However, changes must be postponed after each update.

    cp -p ___NEXTCLOUD_DIR___/apps/circles/lib/Search/LocalUsers.php ___NEXTCLOUD_DIR___/apps/circles/lib/Search/LocalUsers.php.BACK
    vi ___NEXTCLOUD_DIR___/apps/circles/lib/Search/LocalUsers.php
    
    Ligne 75, add :
    	$value = ($user->getEMailAddress()) ? ($user->getDisplayName() . " (" . $user->getEMailAddress() . ")") : $user->getDisplayName();
    Ligne 78, replace by :
    	$user->getUID(), Member::TYPE_USER, '', ['display' => $value]
    
    cp -p ___NEXTCLOUD_DIR___/apps/circles/css/navigation.css ___NEXTCLOUD_DIR___/apps/circles/css/navigation.css.BACK
    vi ___NEXTCLOUD_DIR___/apps/circles/css/navigation.css
    
    Ligne 217, replace by :
    	height: auto;
    
    cp -p ___NEXTCLOUD_DIR___/apps/circles/js/circles.app.results.members.js ___NEXTCLOUD_DIR___/apps/circles/js/circles.app.results.members.js.BACK
    vi ___NEXTCLOUD_DIR___/apps/circles/js/circles.app.results.members.js
    
    Ligne 116, add :
    	title="' + nav.escapeHtml(value.ident) + '"
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions