When I assign users to roles, changes are not applied until Jenkins restart

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: role-strategy-plugin
    • None
    • Environment:
      Java VM: 11.0.6+10-post-Ubuntu-1ubuntu118.04.1
      Jenkins version: 2.221
      Role-based strategy plugin version: 2.16
      Active directory plugin: 2.16
    • Role Strategy 3.1

      INITIAL STATE:

      Users are logged using LDAP server (Active Directory Plugin).

      Permissions are given using Role-based strategy.

      Global roles and item roles have been created.

      A certain user is assigned a global role and certain item roles.

       

      STEPS TO REPRODUCE:

      1. Go to Jenkins administration > Manage and Assign Roles > Assign Roles.
      2. Change item roles for a specific user (check the box for a new item rol or uncheck).
      3. At the bottom of the page, click on Apply and Save.
      4. Log out and log in with that specific user you changed his roles.
      5. The user has the old permissions.
      6. Restart Jenkins.
      7. Log in again with that specific user.
      8. The user has the new permissions.

            Assignee:
            Hui Jun Ng
            Reporter:
            Jorge Casas
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: