How to Create/Add Users in Jenkins & Manage Permissions

⚡ Smart Summary

Creating users in Jenkins takes four clicks, but assigning different permissions to each of them requires the Role-based Authorization Strategy plugin, which replaces the single global role every built-in Jenkins account otherwise shares.

  • 🔘 Built-in limit: Jenkins can create many users out of the box, yet every one of them receives the same global privileges.
  • ☑️ Plugin first: Install Role-based Authorization Strategy, then switch Authorization to Role Based Strategy before any role screen appears.
  • Three role types: Global roles cover the whole controller, item roles target jobs and folders, and agent roles target build machines.
  • 🧪 Worked example: A developer role is created, given permissions, and assigned to the user guru99 on the Assign Roles screen.
  • 🛠️ Pattern matching: An item role uses a regular expression such as tester.* so every matching job or user picks the role up automatically.
  • ⚙️ Safety rule: Keep one account holding Overall/Administer at all times, otherwise saving a role change can lock everybody out.

How to Create and Add Users in Jenkins and Manage Permissions

Generally, in a large organization, there are multiple, separate teams to manage and run jobs in Jenkins. But managing this crowd of users and assigning roles to them can prove troublesome.

By default, Jenkins comes with very basic user creation options. You can create multiple users but can only assign the same global roles and privileges to them. This is not ideal, especially for a large organization.

The Role Strategy Plugin enables you to assign different roles and privileges to different users. You will first need to install the plugin in your Jenkins environment, so the walkthrough below covers user creation first, then the plugin, then the role screens it unlocks.

How to Create/Add a User in Jenkins

Below are the steps to create a new user in Jenkins:

Step 1) Login to Jenkins Dashboard

Login to your Jenkins dashboard by visiting http://localhost:8080/

If you have not installed Jenkins in your local server, go to the appropriate URL and access your dashboard by using your login credentials. The dashboard you land on is shown below.

Jenkins dashboard opened in the browser at the Jenkins installation path

Step 2) Choose the option

You will now see options to create and add a user in Jenkins and manage current users.

Manage Jenkins screen showing the options for creating and managing users

Step 3) Create a new User

  • Under Manage Jenkins, Click Create User
  • Enter Jenkins add user details like password, name, email etc.
  • Click Create User

Step 4) User is created

You will see on the dashboard that a new Jenkins user has been created as per the details entered, as in the user list below.

User list on the Jenkins dashboard after the new user has been created

⚠️ Version note: current Jenkins releases list this screen as Manage Jenkins > Users rather than Manage Users. The Create User button and the fields on it are unchanged, and the screen only exists while Jenkins’ own user database is the security realm — an LDAP or single sign-on realm manages accounts externally instead.

How to Install Role Strategy Plugin in Jenkins

The built-in user screen creates accounts but cannot give them different permissions. That capability arrives with the Role-based Authorization Strategy plugin, installed as follows.

There are two methods for installing plugins in Jenkins:

  1. Installing it through your Jenkins dashboard
  2. Downloading the plugin from Jenkins website and installing it manually.

Step 1)

  1. Go to Manage Jenkins
  2. Click on the Manage Plugins option

Manage Jenkins page with the plugin management option highlighted

Step 2)

  1. In the available section screen, search for “role”.
  2. Select Role-based Authorization Strategy plugin
  3. Click on “Install without restart” (make sure you have an active internet connection)

Plugin manager search results listing the Role-based Authorization Strategy plugin

⚠️ Version note: the path is now Manage Jenkins > Plugins and the tab is labelled Available plugins. The search box and the plugin name are the same, so the two steps above still apply.

Step 3)

Once the plugin is installed, a “success” status will be displayed, as the installation screen below shows.

Plugin installation screen showing the success status for the role strategy plugin

Click on Go back to the top page.

Step 4) Go to Manage Jenkins -> Configure Global Security -> Under Authorization, select Role Based Strategy. Click on Save. The Authorization section looks like this.

Authorization section of the global security screen with Role Based Strategy selected

In current Jenkins the link to this page is Manage Jenkins > Security, and the page itself is still headed Configure Global Security with the same Authorization drop-down.

Types of Roles in the Role Strategy Plugin

Once Role Based Strategy is active, the plugin offers three separate role scopes. Choosing the wrong scope is the most common reason a permission appears to have no effect, so it is worth knowing what each one covers before creating anything.

Role type Scope Typical use
Global roles The whole Jenkins controller, and they override anything set in item roles admin, an authenticated read-only role, anonymous
Item roles Jobs, pipelines and folders whose full name matches a regular-expression pattern Giving one team Build and Configure rights on its own jobs only
Agent roles Build agents matched by a pattern Letting a team connect or disconnect its own agents

The tutorial below uses a global role for developer and an item role for tester. Note the naming: the plugin now calls the second scope Item roles, because it covers folders and pipelines as well as plain jobs. Older releases — and the screenshots further down this page — label the same table Project Roles.

How to Manage Users and Roles in Jenkins

Following are the steps on how to manage and assign roles in Jenkins:

Step 1)

  1. Go to Manage Jenkins
  2. Select Manage and Assign Roles

Manage Jenkins page showing the Manage and Assign Roles entry added by the plugin

Note: that the Manage and Assign Roles option will only be visible if you have installed the role strategy plugin and switched Authorization over to Role Based Strategy.

Step 2) Click on Manage Roles to add new roles based on your organization.

Manage and Assign Roles screen with the Manage Roles option

Step 3) To create a new role called “developer”,

  1. Type “developer” under “role”.
  2. Click on “Add” to create a new role.
  3. Now, select the Jenkins user permissions you want to assign to the “Developer” role.
  4. Click Save

The grid of tick boxes that appears is shown below.

Manage Roles screen with the developer role added and its permissions ticked

Jenkins Permission Groups You Can Assign to a Role

The tick boxes on the Manage Roles screen are grouped by the object each permission acts on. The table below explains what each group controls, which makes it far easier to grant the minimum a team actually needs.

Permission group What it grants
Overall Administer, Read and the other controller-wide rights. Administer is full control, so grant it sparingly.
Credentials Viewing, creating and updating stored credentials
Agent Configuring, connecting, disconnecting and deleting build agents
Job Build, Cancel, Configure, Create, Delete, Read, Workspace and Move on jobs
Run Deleting, replaying and updating an individual build record
View Creating, configuring, deleting and reading dashboard views
SCM Triggering a build from a source-control hook

Start every new role with Overall/Read plus Job/Read. Without those two, a signed-in user sees an empty dashboard even when other permissions are ticked, which is the single most reported confusion with this plugin.

How to Assign Roles in Jenkins

Step 1) Now that you have created roles, let us assign them to specific users.

  1. Go to Manage Jenkins
  2. Select Manage and Assign Roles

Manage and Assign Roles screen opened to reach the Assign Roles option

Step 2) We shall add the new role “developer” to user “guru99

  1. Select the developer role checkbox
  2. Click Save

Assign Roles screen with the developer role checkbox ticked for user guru99

You can assign any role to any user, as per your need.

How to Create Project Roles in Jenkins

Global roles apply everywhere. When a permission should apply to one set of jobs only, create a project role instead — the scope the plugin now calls an item role.

You can create project specific roles under Project Roles.

Step 1) In Jenkins’ Manage and Assign Roles

  1. Enter a role as “tester”
  2. Add a pattern to this by adding tester.*, so that any username starting with “tester” will be assigned the project role you specify.
  3. Click Add
  4. Select privileges
  5. Click Save

The completed Project Roles table is shown below.

Project Roles table with a tester role and the tester dot star pattern entered

The pattern is a regular expression matched against the full name of the item, so tester.* also matches a folder named tester-suite and everything inside it. Test a new pattern on a throwaway job before applying it to a live freestyle project or a pipeline job.

Matrix-Based Security vs Role-Based Strategy

Role Based Strategy is not the only authorization option in that drop-down. Jenkins ships with matrix-based security built in, and for a small installation it may be all that is needed.

Point of comparison Matrix-based security Role-based strategy
Installation Built into Jenkins Needs the Role-based Authorization Strategy plugin
Unit of assignment Each user or group is granted permissions directly Permissions belong to a named role, and users are attached to the role
Adding the tenth user The whole permission row is repeated by hand Tick one role checkbox
Per-job control Project-based matrix authorization, configured job by job One item role with a pattern covers every matching job
Best fit A handful of users with near-identical access Several teams, many jobs, access that changes as people move

The rule of thumb is the number of times a permission is repeated. Once the same tick pattern is being entered for a third user, a role is cheaper to maintain — the same argument that pushes teams from ad-hoc jobs toward a reviewed CI/CD pipeline.

FAQs

Two things must both be true. The Role-based Authorization Strategy plugin has to be installed, and Authorization on the security screen has to be set to Role Based Strategy. The entry stays hidden until the second step is saved.

Stop Jenkins, open config.xml in JENKINS_HOME, and replace the authorizationStrategy element with <authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>, then restart. Always keep one account holding Overall/Administer to avoid needing this.

Yes. The Assign Roles screen accepts group names as well as user names, so an LDAP or Active Directory group can be attached to a role once and membership then handled entirely in the directory.

Machine learning tools compare granted permissions against what each account actually uses and flag the unused ones, which surfaces over-privileged roles far faster than reading a permission matrix by hand.

GitHub Copilot writes the Groovy or REST calls that create roles in bulk and drafts pattern expressions for item roles. Review anything it produces before it runs, because a wrong pattern silently widens access.

Accounts sit under JENKINS_HOME/users, one folder per user with a config.xml inside. Roles and their permissions live in the main JENKINS_HOME/config.xml, so backing up that folder preserves both.

Delete the account from the users list, which removes the login but not its build history. To revoke access without deleting anything, clear the role checkbox for that user on the Assign Roles screen and save.

Yes. The Credentials permission group on the Manage Roles screen covers viewing, creating and updating stored secrets, so a role can be allowed to run a job while being blocked from reading the credentials it uses.

Summarize this post with: