timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-10258] Allow users unicity #6659

Open timja opened 13 years ago

timja commented 13 years ago

See http://jenkins.361315.n4.nabble.com/Users-unicity-td2542625.html for related discussion.

Jenkins is missing a way to ensure users unicity since they are created from various sources: authentication method (LDAP in my case), code commits (Subversion, Mercurial, Git, ...).
Depending on the way the user is retrieved by Jenkins (from a commit on a given SCM or its authentication), multiple identities are created for the same real user.
As a consequence, some features are not fully or badly working (login, notifications, user's builds, continuous integration game, ...) and configuration of users is a pain as it must be done multiple times for each real user.

Wanted features are:


Originally reported by jcarsique, imported from: Allow users unicity
  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 13 years ago

redsolo:

re-assigning to Kohsuke as Im the maintainer of the ci-game and this is not really an issue that comes from the game. The game only gets the names from the SCM plugins, the merging has to be done in core.

timja commented 12 years ago

kohsuke:

Removing unrelated components.

timja commented 12 years ago

kohsuke:

I agree with the problem, but this is a somewhat involving work. I think there are two parts to this.

One is that when external systems tell us user IDs, we need to define an extension point that converts that ID into the user ID in Jenkins. We need a few decent generic implementations of this extension point as well. We should be able to define just one such extension point that takes enough context so that it can work with Git, Mercurial, Subversion, etc.

The other is the equivalent of MailAddressResolver for IRC, Jabber, etc., that can infer the default value from the User object so that everyone doesn't have to fill in those values separately. I think this is a nice-to-have, not a must-have, and it needs to be addressed by individual plugins separately.

I'm not sure about the merge feature. Perhaps this is a separate extension point to allow user ID to be translated to another before we grab the User object?

timja commented 12 years ago

jcarsique:

You got it.
The first point about user IDs is the most important one.
The MailAddressResolver is an improvement.
The merge feature is only required for existing data. Since the two preceding problems would have been resolved, the merge becomes useless. However, user ID translation seems interesting in case of multiple external accounts (SCM for instance) per user.

timja commented 11 years ago

justin_wesley:

What is the status of this request? It looks to be inactive for 18 months or so. We have the same issue where a user id in SVN is different that our LDAP user.

timja commented 10 years ago

ndeloof:

partially addressed by hudson.model.User.CanonicalIdResolver

timja commented 10 years ago

blundell:

We have this issue in that there are two Jenkins users for 1 person, 1 that has logged in using credentials and one that has committed a change.

Would be nice to merge these two people into the one human they are.

timja commented 10 years ago

danielbeck:

The Additional Identities Plugin aims to resolve this:

https://wiki.jenkins-ci.org/display/JENKINS/Additional+Identities+Plugin
https://github.com/ndeloof/additional-identities-plugin

ndeloof: Any chance you could create a release?

timja commented 9 years ago

intel352:

Even with the Additional Identities Plugin, this is still an issue for me.
I have multiple emails that I use for commits with Github, for some personal projects and then work projects.
I viewed the People list in Jenkins, deleted the "automatic" users created by Jenkins (I presume based on commits across various projects), added the email address for each user to my Additional Identities on my primary account (tried with and without Realm), yet upon revisiting the People list, I see the previously deleted users have again returned.

timja commented 7 years ago

trejkaz:

Is there some kind of way to work around this problem? Some users on ours show up more than 3 times...

 

 

timja commented 2 years ago

[Originally related to: JENKINS-58925]

timja commented 2 years ago

[Originally related to: JENKINS-9016]