Limiting pipeline access in Azure DevOps

ELFIGHA, Oussama 20 Reputation points
2024-07-23T19:30:37.74+00:00

I am working on an Azure DevOps project and would like to add a new user to the project. However, I would like to restrict the user's access to code source or my repo while still allowing them to add and edit my pipeline and YAML files. Is there a way to achieve this? Thank you.

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
807 questions
0 comments No comments
{count} votes

Accepted answer
  1. Iheanacho Chukwu 995 Reputation points
    2024-07-29T15:34:41.5166667+00:00

    Please do not forget to "Accept the answer" if the information provided helps you to help others in the community.

    Hello @ELFIGHA, Oussama

    This is not directly possible, however, I see a possible a workaround with using pipeline templates called from a different repository. Thus, giving you that sort of restriction you want to have as you can grant the user limited access to your own repository, where the source code lives, and allow them more access to the other repository (remote pipeline template repository).

     

    If this sound like a good idea to you please read, you can read more about it here:

      

    Here is another example levelling on remote template

    User's image

    This way, they can update pipeline configurations without accessing the main codebase.

    I hope this helps.


1 additional answer

Sort by: Most helpful
  1. Marcin Policht 23,545 Reputation points MVP
    2024-07-23T20:00:42.77+00:00

    In short, no (at least I don't see how this would be possible). YAML files are part of the repos


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.