Not able to add new user in Jenkins 2.462.1

Hi,

We recently upgraded the jenkins version from 2.303 to 2.462.1 . We have admin permissions to this jenkins and this has been setup in ec2 instance. The problem is we are not able to add a new user in the new version of Jenkins. When we click on add user and enter the details, nothing is happening. Can someone please suggest here.

Be sure that you’ve updated your plugins to the most recent releases. When you upgrade Jenkins across many versions, you may have very old plugins that need an update to work well with the new Jenkins version.

If your plugin versions are current, then you’ll need to check if the same issue can be seen with a fresh installation of Jenkins and those plugins. If the issue can be seen with a fresh installation, then submit an issue to Jenkins Jira

Thanks @MarkEWaite. Is there any specific plugin used for addition and deletion of users?

Specific plugins are probably involved in the addition and deletion of users, but that depends on the plugins that you have installed and may depend on the configuration of those plugins.

Upgrade all the plugins to their most recent releases so that you’re running a set of plugins that is installed by a wider set of users.

Hi @MarkEWaite

I have updated the plug-in “Role-based authorization strategy” , still I am not able to add a new user.

Jenkins version - 2.462.2
Role-based authorization strategy - 743.v142ea_b_d5f1d3

When I click on add user and enter the name and click on add, nothing is happening.

Can you please suggest here.

Thanks

I can’t duplicate the problem that you’re reporting. I installed Jenkins 2.462.2 and role strategy plugin 743.v142ea_b_d5f1d3 and confirmed that I can create users in that installation. You’ll need to provide more details so that others can duplicate the issue.

Steps that I took while trying to duplicate the issue:

  1. Create a plugins.txt file that lists the exact plugins installed and their versions (using the script from “How to report an issue”)
    Plugins and their versions
     apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
     asm-api:9.7.1-97.v4cc844130d97
     bouncycastle-api:2.30.1.78.1-248.ve27176eb_46cb_
     branch-api:2.1206.vd9f35001c95c
     caffeine-api:3.2.0-161.v691ef352cee1
     cloudbees-folder:6.955.v81e2a_35c08d3
     commons-lang3-api:3.17.0-84.vb_b_938040b_078
     credentials:1380.va_435002fa_924
     credentials-binding:681.vf91669a_32e45
     display-url-api:2.204.vf6fddd8a_8b_e9
     durable-task:581.v299a_5609d767
     git:5.5.2
     git-client:5.0.3
     gson-api:2.11.0-85.v1f4e87273c33
     instance-identity:201.vd2a_b_5a_468a_a_6
     ionicons-api:74.v93d5eb_813d5f
     jackson2-api:2.17.0-389.va_5c7e45cd806
     jakarta-activation-api:2.1.3-1
     jakarta-mail-api:2.1.3-1
     javax-activation-api:1.2.0-7
     jaxb:2.3.9-1
     joda-time-api:2.13.0-93.v9934da_29b_a_e9
     json-api:20241224-119.va_dca_a_b_ea_7da_5
     mailer:488.v0c9639c1a_eb_3
     mina-sshd-api-common:2.14.0-143.v2b_362fc39576
     mina-sshd-api-core:2.14.0-143.v2b_362fc39576
     pipeline-build-step:540.vb_e8849e1a_b_d8
     pipeline-groovy-lib:749.v70084559234a_
     pipeline-input-step:508.v584c0e9a_2177
     pipeline-milestone-step:119.vdfdc43fc3b_9a_
     pipeline-model-api:2.2218.v56d0cda_37c72
     pipeline-model-definition:2.2218.v56d0cda_37c72
     pipeline-model-extensions:2.2218.v56d0cda_37c72
     pipeline-stage-step:312.v8cd10304c27a_
     pipeline-stage-tags-metadata:2.2218.v56d0cda_37c72
     plain-credentials:183.va_de8f1dd5a_2b_
     role-strategy:743.v142ea_b_d5f1d3
     scm-api:696.v778d637b_a_762
     script-security:1369.v9b_98a_4e95b_2d
     snakeyaml-api:2.3-123.v13484c65210a_
     ssh-credentials:349.vb_8b_6b_9709f5b_
     structs:338.v848422169819
     variant:60.v7290fc0eb_b_cd
     workflow-aggregator:600.vb_57cdd26fdd7
     workflow-api:1358.vfb_5780da_64cb_
     workflow-basic-steps:1058.vcb_fc1e3a_21a_9
     workflow-cps:4009.v0089238351a_9
     workflow-durable-task-step:1378.v6a_3e903058a_3
     workflow-job:1436.vfa_244484591f
     workflow-multibranch:795.ve0cb_1f45ca_9a_
     workflow-scm-step:427.v4ca_6512e7df1
     workflow-step-api:678.v3ee58b_469476
     workflow-support:943.v8b_0d01a_7b_a_08
     
  2. Create a run-jenkins.sh script that downloads Jenkins 2.492.2 and the specified plugins and runs them
    run-jenkins.sh shell script
     #!/bin/bash
     JENKINS_WAR_VERSION=2.462.2
     JENKINS_WAR=jenkins-${JENKINS_WAR_VERSION}.war
     PLUGIN_MANAGER_VERSION=2.13.0
     PLUGIN_MANAGER_JAR=jenkins-plugin-manager-${PLUGIN_MANAGER_VERSION}.jar
     if [ ! -f ../$PLUGIN_MANAGER_JAR ]; then
       wget https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${PLUGIN_MANAGER_VERSION}/$PLUGIN_MANAGER_JAR
       mv $PLUGIN_MANAGER_JAR ..
     fi
     if [ ! -d plugins ]; then
       mkdir plugins
     fi
     java -jar ../$PLUGIN_MANAGER_JAR --jenkins-version $JENKINS_WAR_VERSION --latest false --plugin-download-directory plugins --plugin-file plugins.txt
     if [ ! -f ../$JENKINS_WAR ]; then
       wget https://get.jenkins.io/war-stable/${JENKINS_WAR_VERSION}/jenkins.war
       mv jenkins*.war ../$JENKINS_WAR
     fi
     JENKINS_HOME=. java -jar ../$JENKINS_WAR
     
  3. Run the run-jenkins.sh script and complete the setup wizard by creating a new user and installing no additional plugins
  4. Switch to the role base strategy as the authorization method from “Manage Jenkins” → “Security”
  5. Restrict project naming to role based strategy from “Manage Jenkins” → “System” to silence the warning about inconsistent naming
  6. Create multiple users from “Manage Jenkins” → “Users”