Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User access in Jenkins, How can I give someone access to only see jobs

Tags:

jenkins

User access in Jenkins, How can I give someone access to only see jobs.

I want to setup a admin and everyone else can only see jobs. can someone please tell me how to do this

like image 996
techsjs2012 Avatar asked Jan 17 '13 14:01

techsjs2012


People also ask

How can roles and permissions be managed in Jenkins?

Enable Role-Based Strategy on JenkinsStep 1: After Plugin installation, go to the 'Manage Jenkins' and then click on 'Configure Global Security'. Check on Enable security option. Step 2: On the Security Realm section, select 'jenkins' own user database'. On Authorization section, select 'Role-Based Strategy'.

What are the ways to customize access control in Jenkins?

Jenkins access control is split into two parts: Authentication (users prove who they are) is done using a security realm. The security realm determines user identity and group memberships. Authorization (users are permitted to do something) is done by an authorization strategy.


2 Answers

The Jenkins Wiki has a good explanation of how this is done: Standard Security Setup.

Essentially you do this:

  • Go to Jenkins -> Manage Jenkins -> Configure Global Security.
  • Check "Enable security".
  • Set "Jenkins own user database" as security realm.
  • Check "Allow users to sign up"
  • Choose "Matrix based security"
  • Check "Overall read" on Anonymous.
  • Add your admin account in the matrix, check every box.
  • Save configuration and sign up with the admin username to set a password.
like image 194
Anders Lindahl Avatar answered Sep 28 '22 08:09

Anders Lindahl


Go to "Manage Jenkins" -> "Configure System" and under "Authorization" choose "Matrix-based security". You can then configure exactly what each user should be able to do.

like image 39
Lars Kotthoff Avatar answered Sep 28 '22 08:09

Lars Kotthoff