DEV Community

Anusha Kuppili
Anusha Kuppili

Posted on

๐Ÿ” Jenkins User Access Configuration Made Easy

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)