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

Option to disable/enable users in the Jenkins user database

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None

      I would prefer to disable users that are no longer active instead of deleting them, at least for some project members that may return and then later delete the users in a batch (or you could just keep the users in the same state as autocreated users).
      For this, a disable/enable switch in the user administration would be necessary plus probably checks if a user is active all over the place.

      Another possibility would be to demote the users to autocreated and keep them in the database.

          [JENKINS-11205] Option to disable/enable users in the Jenkins user database

          Probably it could be realized using User Propery for "jenkins internal db"

          Kanstantsin Shautsou added a comment - Probably it could be realized using User Propery for "jenkins internal db"

          Kanstantsin Shautsou added a comment - - edited

          /hudson/security/HudsonPrivateSecurityRealm.java has Expired/Locked/Enabled statutes, but they are not used.
          I added additional property "enabled" and fix isEnabled method. But it can't get/set "enabled" from jelly, it getting Descriptor method...

          Kanstantsin Shautsou added a comment - - edited /hudson/security/HudsonPrivateSecurityRealm.java has Expired/Locked/Enabled statutes, but they are not used. I added additional property "enabled" and fix isEnabled method. But it can't get/set "enabled" from jelly, it getting Descriptor method...

          Kanstantsin Shautsou added a comment - Resolved my problems. https://github.com/jenkinsci/jenkins/pull/902

            integer Kanstantsin Shautsou
            alexlehm Alex Lehmann
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: