A2oz

How Do I Add an Admin User in Jenkins?

Published in Jenkins 1 min read

You can add an admin user in Jenkins by using the built-in user management features. Here's how:

1. Access Jenkins Configuration

  • Open your Jenkins web interface.
  • Click on Manage Jenkins in the left sidebar.
  • Select Manage Users from the list.

2. Create a New User

  • Click on Create User.
  • Enter the Username, Full Name, and Email Address for the new admin user.
  • Set a Password for the user.
  • Click Create User.

3. Assign Admin Role

  • Navigate to Manage Jenkins > Manage Users.
  • Click on the newly created user's name.
  • In the User Details section, click on the Configure link.
  • Under Global Roles, select the Administrator role.
  • Click Save.

Now the newly created user has full administrative privileges in your Jenkins instance.

Note: You can also use the Jenkins CLI or Jenkins API to create and manage users programmatically.

Related Articles