Hey everyone ๐
Iโm Anusha Kuppili, a DevOps enthusiast, and recently while helping a team set up Jenkins for their CI/CD pipelines, I had to configure user access and permissions securely.
Honestly, it sounds simpleโฆ until you're staring at Jenkinsโ settings wondering:
โWait, where is this matrix everyoneโs talking about?โ
So here's a straightforward, no-fluff walkthrough of how I got it working โ creating a user, restricting access, and enabling job-level permissions. Let's go! ๐
๐งฉ Why Access Control in Jenkins Matters
If youโre collaborating with a team, you donโt want every user to have admin access. And you definitely donโt want anonymous users poking around your jobs.
Thatโs where Jenkinsโ Project-based Matrix Authorization Strategy comes in handy โ it lets you fine-tune exactly what each user can and canโt do.
โ
Step 1: Log in to Jenkins
Open your Jenkins instance (usually at http://localhost:8080 or your server IP).
Use your admin login. If itโs freshly installed, you might be using something like:
Username: admin
Password: Adm!n321 (or whatever youโve set)
๐ค Step 2: Create a New User
Weโre creating a user named ammar.
Go to Manage Jenkins โ Manage Users
Click Create User
Fill in:
Username: ammar
Password: TmPcZjtRQx
Full Name: Ammar
Click Create User
Now Ammar has a Jenkins account โ but no permissions yet!
๐ Step 3: Install the Matrix Authorization Plugin
Hereโs where I initially got stuck โ if you donโt see the Matrix-style permission grid, you likely need the plugin.
Go to Manage Jenkins โ Plugins
Under the Available tab, search:
Matrix Authorization Strategy
Select it and click Install without restart
When done, hit Restart Jenkins when installation is complete
๐ Wait until Jenkins fully reloads and you see the login screen again.
๐ Step 4: Enable Project-based Matrix Authorization
Now that the plugin is in, letโs set up permissions.
Go to Manage Jenkins โ Configure Global Security
Under Authorization, select:
โ
Project-based Matrix Authorization Strategy
Youโll now see a permissions grid. Add:
ammar โ Check only Overall โ Read
admin โ Make sure you keep Overall โ Administer
Anonymous โ Uncheck everything or remove it
โ This setup allows Ammar to view Jenkins, but not change anything.
๐ Step 5: Give Ammar Access to Just One Job
By default, users donโt get access to jobs. If you want ammar to view one specific job (and nothing else), youโll need to:
Go to the Job (aka pipeline or project)
Click Configure
Scroll down and enable:
โ
Project-based security
Add ammar and give only:
Job โ Read
Make sure admin still has all permissions checked
Click Save
Now Ammar can view that job, but canโt build, delete, or modify anything.
๐ซ Step 6: Remove Anonymous Access
For safety:
Go back to Configure Global Security
Find Anonymous in the permission matrix
Remove it or uncheck all boxes
This ensures only logged-in users can access Jenkins.
๐ Done! Jenkins Is Now Locked Down
What we achieved:
Created a user with limited permissions
Installed the Matrix plugin
Disabled anonymous access
Secured job-level visibility
๐ง Quick Summary
Task What You Did
โ
Add user Created ammar with password
๐ Install plugin Matrix Authorization Strategy
๐ Restrict access Global + Job-level permissions
๐ Disable guests Removed Anonymous user
๐ฌ Got Questions?
If you're setting up Jenkins for the first time or want help automating this setup, drop your questions in the comments below. Iโd love to connect and learn how others are managing access too! ๐
Follow me for more hands-on DevOps content
Top comments (0)