0
0
JenkinsHow-ToBeginner · 3 min read

How to Disable Signup in Jenkins: Step-by-Step Guide

To disable signup in Jenkins, go to Manage Jenkins > Configure Global Security, then under Security Realm, select Jenkins' own user database and uncheck Allow users to sign up. Save the settings to prevent new users from creating accounts.
📐

Syntax

The signup option in Jenkins is controlled via the Security Realm settings in the Jenkins configuration. The key parts are:

  • Manage Jenkins > Configure Global Security: Where security settings are managed.
  • Security Realm: Defines how users authenticate.
  • Jenkins' own user database: The built-in user database option.
  • Allow users to sign up: Checkbox to enable or disable user signup.
jenkins
Manage Jenkins > Configure Global Security > Security Realm > Jenkins' own user database > [ ] Allow users to sign up
💻

Example

This example shows how to disable signup in Jenkins using the web interface:

  1. Open Jenkins and log in as an administrator.
  2. Click Manage Jenkins on the left menu.
  3. Select Configure Global Security.
  4. Under Security Realm, choose Jenkins' own user database.
  5. Uncheck the box labeled Allow users to sign up.
  6. Click Save at the bottom.

After this, new users cannot create accounts themselves.

⚠️

Common Pitfalls

Common mistakes when disabling signup include:

  • Not saving the configuration after unchecking the signup option.
  • Using an external security realm (like LDAP) where signup is managed outside Jenkins.
  • Not having an admin user created before disabling signup, which can lock you out.

Always ensure you have at least one admin user before disabling signup.

jenkins
Wrong way:

Manage Jenkins > Configure Global Security > Security Realm > Jenkins' own user database > [x] Allow users to sign up

Right way:

Manage Jenkins > Configure Global Security > Security Realm > Jenkins' own user database > [ ] Allow users to sign up
Save the settings.
📊

Quick Reference

StepAction
1Log in as admin
2Go to Manage Jenkins
3Select Configure Global Security
4Choose Jenkins' own user database under Security Realm
5Uncheck Allow users to sign up
6Save the configuration

Key Takeaways

Disable signup by unchecking 'Allow users to sign up' in Jenkins' own user database settings.
Always save your security configuration changes to apply them.
Ensure at least one admin user exists before disabling signup to avoid lockout.
If using external authentication, signup is managed outside Jenkins.
Disabling signup improves security by controlling who can create accounts.