User access in Jenkins, How can I give someone access to only see jobs
One simple way: I went in Manage Jenkins > Configure Global Security and checked Allow anonymous read access.
Now any body who doesn't have credentials can view the jobs.
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.
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.
Steps to create a new user in Jenkins with only READ access
Steps to create a new user
- Login into Jenkins
- Go to Manage Jenkins
- Go to Create Users
- Enter all the details – Username, Password, Confirm Pwd, FullName, Email
- Select Create User
Steps to assign only read access
- Login to Jenkins
- Go to Manage Jenkins
- Go to Configure Global Security
- Select Jenkins own User Database
- Tick the checkbox “Allow Users to Sign Up”
- Select Matrix-based security
- Select the button “Add user or group”
- Write User or Group name – write the user name of the user you created
- Tick 3 read option under – Overall, Job, View
- Save and Apply
Login with the new user id and check if the changes are reflected