How do I login to Jenkins when I locked myself out?

Issue

  • When managing user permissions, a user might set a permission wrong and lose access when using their main administrator account. Regaining access can be done in a few steps.
  • global security needs to be changed, unable to login as administrator

Environment

  • CloudBees Jenkins Enterprise
  • CloudBees Jenkins Operations Center

Resolution

1) Edit the config.xml file in the JENKINS_HOME folder and locate this line:

<useSecurity>true</useSecurity>

Set the value to false

2) Start Jenkins

From there you should be able to toggle security back on from the UI and then correct any permission problems that caused the problem, normally this happens with role based matrix.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.