jenkinsjenkins-pipelinejenkins-pluginscicd

Jenkins - User permission by View/Pipeline


I have a requirement to give access to an external supplier and I would like to give them access to only a View with some pipelines inside. I don’t want them seeing all my pipelines created on Jenkins. Is ti possible? Because by Manage and Assign Role plugin I can only restrict by functionality but not by Pipeline or View


Solution

  • If you want detailed control, you should take a look at the Matrix Auth Plugin and there the

    Project-based Matrix Authorization Strategy
    

    As the documentation says:

    This authorization scheme is an extension to Matrix-based security which allows additional access control lists (ACLs) to be defined for each project separately in the Project configuration screen. This allows granting specific users or groups access only to specified projects, instead of all projects in the Jenkins environment. The ACLs defined with Project-based Matrix Authorization are additive such that access grants defined in the Security screen will be combined with project-specific ACLs.

    So this gives you the possibility to configure each project individually. If you are using this together with the Folders Plugin you can inherit the folder configuration and do not need to configure all projects under the root folder, but you can still do that if you need to.