Take the 2-minute tour ×

Is there a way to restrict user to view only certain jobs in Jenkins.

Jenkins allows the restriction of user ability per project via the "Project-based Matrix Authorization Strategy". The problem is that a user can not access anything without the 'Overall' 'Read' setting. This seems to allow them to view all the jobs.

Is there another plugin that would allow the job restriction?

share|improve this question
add comment

3 Answers

Think this is, what you are searching for: Allow access to specific projects for Users

Short description without screenshots:
Use Jenkins "Project-based Matrix Authorization Strategy" under "Manage Jenkins" => "Configure System". On the configuration page of each project, you now have "Enable project-based security". Now add each user you want to authorize.

share|improve this answer
Looks like you still need to open up the Overall read setting as OP suggests. I've tried everything and can't get the project-based security settings to do anything without checking that Overall read. Could be that I'm using LDAP, but it works fine at the global level. –  quickshiftin Aug 6 '12 at 6:18
add comment

Try going to "Manage Jenkins"->"Manage Users" go to the specific user, edit his/her configuration "My Views section" default view.

share|improve this answer
This only hides the job from the user, it doesn't prevent access to it. –  stwalkerster Jan 18 at 12:50
add comment

You could use Project-based Matrix Auth Strategy and enable Read Overall permission, but disable Read Job on the system level. After that you should enable Read Job for each specific project you've wanted to make visible for the current user. Please refer to this resolved issue for more info. Some info from there:

I am implementing READ permission at the job level. When this is done, a user that lacks the READ permission for a particular job will not: see that job in any view, be able to access the job page directly, see any reference to the job (for instance in upstream or downstream dependencies)

Also, I recommend you to go further and check out Role Strategy Plugin. It can simplify user/role management, you can use the described above to give access to the certain jobs.

share|improve this answer
add comment

Your Answer


