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

Let configure role control for an user (remote) to only see specific Folder(s) and View(s) and Job(s) but keeping the original structure

    XMLWordPrintable

Details

    Description

       

      Because it is the best plugin about roles and security, I am creating this issue to ask for an improvement here. (If there is other plugin that handles this situation, please let me know)

      Consider the scenario where the admin created a Folder with many Views and they contains many Jobs.

      The goal is configure the Folder, View(s) and Jobs(s) to assign roles to them, but keeping the original structure of them together.

      For more details, please read the following:

      How configure role control for an user (remote) to only see specific Folder(s) and View(s)

      Attachments

        Issue Links

          Activity

            mawinter69 Markus Winter added a comment -

            What you might want is a macro that grants access to a job when it is contained in a certain view. But my fear is that this is a performance killer when you have many jobs and views and many roles.

            Such a macro could be implemented in a separate plugin or you can open a PR to role-strategy plugin

             

            mawinter69 Markus Winter added a comment - What you might want is a macro that grants access to a job when it is contained in a certain view. But my fear is that this is a performance killer when you have many jobs and views and many roles. Such a macro could be implemented in a separate plugin or you can open a PR to role-strategy plugin  
            mawinter69 Markus Winter added a comment -

            If still needed try

            https://ci.jenkins.io/job/Plugins/job/role-strategy-plugin/view/change-requests/job/PR-219/8/artifact/org/jenkins-ci/plugins/role-strategy/551.v9c9b_c25d7b_fd/role-strategy-551.v9c9b_c25d7b_fd.hpi

            Here I implemented a new macro, that allows to grant access to all jobs in one or more views.

            @ContainedInView(view1), pattern ".*"
            @ContainedInView(folder1/view1, folder1/view2)
            @ContainedInView(folder1/view3)
            @ContainedInView(folder2/view3, folder4/view4)

            mawinter69 Markus Winter added a comment - If still needed try https://ci.jenkins.io/job/Plugins/job/role-strategy-plugin/view/change-requests/job/PR-219/8/artifact/org/jenkins-ci/plugins/role-strategy/551.v9c9b_c25d7b_fd/role-strategy-551.v9c9b_c25d7b_fd.hpi Here I implemented a new macro, that allows to grant access to all jobs in one or more views. @ContainedInView(view1), pattern ".*" @ContainedInView(folder1/view1, folder1/view2) @ContainedInView(folder1/view3) @ContainedInView(folder2/view3, folder4/view4)

            People

              oleg_nenashev Oleg Nenashev
              manueljordan Manuel Jordan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: