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

Provide API for removing user entries from role strategy

    Details

    • Epic Link:
    • Similar Issues:

      Description

      • Once the user has left the organization, he/she should not have any access to jenkins.
      • We don't use Jenkins Internal database.
      • Users are authenticated against LDAP.
      • Found a groovy script which will delete the user from Jenkins. But that doesn't work for LDAP integrated users and Role-based strategy.
      • Also I found groovy script to add role and permissions but not to remove them.
      • Please help me in un-checking the roles for a particular user.

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Role strategy plugin does not manage users on its own. All deletion-related tickets should be created to Security Realm components like LDAP.
          In Role Strategy it's only possible to remove user entries from role assignments. It would be possible to add API there, but you can still do it via Groovy scripts.

          Show
          oleg_nenashev Oleg Nenashev added a comment - Role strategy plugin does not manage users on its own. All deletion-related tickets should be created to Security Realm components like LDAP. In Role Strategy it's only possible to remove user entries from role assignments. It would be possible to add API there, but you can still do it via Groovy scripts.
          Hide
          arpithabandri Arpitha Bandri added a comment -

          Can you please help me on how to remove user entry from role assignments via Groovy script?

          Show
          arpithabandri Arpitha Bandri added a comment - Can you please help me on how to remove user entry from role assignments via Groovy script?
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          The API has been added in 3.5.0

          Show
          oleg_nenashev Oleg Nenashev added a comment - The API has been added in 3.5.0

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              arpithabandri Arpitha Bandri
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: