Is there a way to restrict permissions to a user per individual job in jenkins?

+1 vote
I have a list of Jenkin jobs and i want a user (say user1) to have read permission on few jobs and all (full) permissions on other jobs.Is there a way i can restrict the permissions as per this in jenkins?
May 28 in Jenkins by Sam
• 290 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Yes, you can configure user permissions per individual jobs.
Jenkins allows you to give different permissions to a user across different jobs,using "Project-based Matrix Authorization strategy".
Follow the steps to do this, 

  •  From the jenkins dashboard,click on Manage Jenkins.

  •  under Manage jenkins->Configure Global Security->select Enable security.

  •  Under the Authorization section, select the "Project-based Matrix Authorization Strategy"

  •  Add the particular user and assign the appropriate permissions.

  • And then to assign Job specific permissions :

    • Go to the job (say job1) for which you need to assign permissions.

    • Click Configure->under the general tab->Enable Project-based Security.

    •  Add the particular user (say user1) and assign the required permissions.

This is useful when specific jobs shouldn't be accessed by certain users.

answered May 28 by Sirajul
• 940 points

edited May 28 by Sirajul

Related Questions In Jenkins

+1 vote
4 answers
0 votes
1 answer
0 votes
1 answer

How to run a job in Jekins by a different user ?

To run a job by a specific ...READ MORE

answered 23 hours ago in Jenkins by Neel
• 260 points
+2 votes
5 answers
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.