Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11759

Allow single user with multiple usernames, therefore allowing same person to be identified

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • Active Directory / Subversion / CVS

      We currently use Active Directory for user logins to Jenkins. However, our repositories are not connected to AD, and so users have a different username for them.
      For example a user A might have username userA in AD, while have Auser in subversion, and user1 in CVS.

      Would it be possible to allow the admin to set additional usernames for a single person? This would help eliminate multiple entries for the same person in the "People" list, and also let Jenkins realise that Auser and user1 (and userA) are the same person?

          [JENKINS-11759] Allow single user with multiple usernames, therefore allowing same person to be identified

          Sagar Khushalani created issue -

          excuse the "hudson" username - legacy stuff

          Sagar Khushalani added a comment - excuse the "hudson" username - legacy stuff
          Sagar Khushalani made changes -
          Attachment New: multiple users.JPG [ 21056 ]
          Daniel Khodaparast made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Khodaparast made changes -
          Assignee New: Daniel Khodaparast [ dpk ]

          I'm working on a fix for this as https://github.com/ndeloof/jenkins/tree/userID

          idea is to extend logic for User.get(String idOrFullName, boolean create); so that - as first parameter suggest - it handle the case idOrFullName is not the jenkins user ID but another identifier. A new extension point is create to retrieve canonical (ie jenkins user database) ID from idOrFullName. So plugins could contribute ID reconciliation, either with automatic rule (append domain name to SCM id, ...), external service lookup, or based on custom UserProperties

          Nicolas De Loof added a comment - I'm working on a fix for this as https://github.com/ndeloof/jenkins/tree/userID idea is to extend logic for User.get(String idOrFullName, boolean create); so that - as first parameter suggest - it handle the case idOrFullName is not the jenkins user ID but another identifier. A new extension point is create to retrieve canonical (ie jenkins user database) ID from idOrFullName. So plugins could contribute ID reconciliation, either with automatic rule (append domain name to SCM id, ...), external service lookup, or based on custom UserProperties

          Code changed in jenkins
          User: Nicolas De Loof
          Path:
          core/src/main/java/hudson/model/User.java
          core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java
          http://jenkins-ci.org/commit/jenkins/a03f9cd2c1e8ede96e3ba50690908d6b068451e2
          Log:
          JENKINS-11759 extension point to resolve jenkins user from SCM id

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: core/src/main/java/hudson/model/User.java core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java http://jenkins-ci.org/commit/jenkins/a03f9cd2c1e8ede96e3ba50690908d6b068451e2 Log: JENKINS-11759 extension point to resolve jenkins user from SCM id

          Code changed in jenkins
          User: Nicolas De Loof
          Path:
          core/src/main/java/hudson/model/User.java
          core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java
          http://jenkins-ci.org/commit/jenkins/af42534defea4503347dfc0ec442fadf51cf3336
          Log:
          JENKINS-11759 extension point to resolve jenkins user from SCM id

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: core/src/main/java/hudson/model/User.java core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java http://jenkins-ci.org/commit/jenkins/af42534defea4503347dfc0ec442fadf51cf3336 Log: JENKINS-11759 extension point to resolve jenkins user from SCM id

          Code changed in jenkins
          User: Nicolas De Loof
          Path:
          core/src/main/java/hudson/model/User.java
          core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java
          http://jenkins-ci.org/commit/jenkins/80fcc481f636986cea4ffab1c9cde37d59252e24
          Log:
          JENKINS-11759 paass context for user ID retrieval

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: core/src/main/java/hudson/model/User.java core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java http://jenkins-ci.org/commit/jenkins/80fcc481f636986cea4ffab1c9cde37d59252e24 Log: JENKINS-11759 paass context for user ID retrieval
          Nicolas De Loof made changes -
          Link New: This issue is blocking JENKINS-14850 [ JENKINS-14850 ]

            dpk Daniel Khodaparast
            khushsk Sagar Khushalani
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: