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

          Alex Lehmann created issue -
          Alex Lehmann made changes -
          Description Original: 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.

          New: 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.

          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 made changes -
          Assignee New: Kanstantsin Shautsou [ integer ]
          Kanstantsin Shautsou made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          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
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 141424 ] New: JNJira + In-Review [ 185387 ]
          Kevin Phillips made changes -
          Link New: This issue is related to JENKINS-39248 [ JENKINS-39248 ]

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

              Created:
              Updated: