Search the JIRA 5.0.x Beta and RCs Documentation:

Index
Downloads (PDF, HTML & XML formats)
Other versions

This documentation relates to JIRA 5.0.x Beta and RCs only.
The latest official version is JIRA 4.4.x
If you are using JIRA 4.4.x either view this page in the JIRA 4.4.x documentation or visit the JIRA 4.4.x documentation home page.
Skip to end of metadata
Go to start of metadata

On this page:

Scenario A: I don't know which user has the JIRA Administrators or JIRA System Administrators global permission

You first need to find out which group(s) have been granted the global permission.

The JIRA System Administrators global permission was added to JIRA in version 3.12. Anyone granted the JIRA System Administrators global permission can perform all administration tasks in JIRA, whereas anyone granted the JIRA Administrators global permission can perform most but not all administration tasks. Prior to version 3.12, anyone granted the JIRA Administrators global permission can perform all administration tasks.

To find out which group(s) have been granted the JIRA Administrators global permission, run the following database query:

To find out which group(s) have been granted the JIRA System Administrators global permission, run the following database query:

Now that you know which group(s) have the global permission, run the following database query to find out which users are in that group (replace "jira-administrators" with the group returned by the above query):

If you don't know the password for the user(s) returned by this query, move on to Scenario B.

If there are no JIRA Administrators

If you're using Crowd or an external user management system, there may be no users with administrator permissions.
Find the groups in the external management system that you want to grant the administrator permissions and do the following:

  1. Shutdown JIRA.

  2. Use SQL to assign the appropriate group to the administrator permissions similar to this:



  3. Restart JIRA.

 

If you are still not able to log in with the user, please make sure that the new user is present in the 'userbase' table and is member of the group 'jira-users' in the 'membershipbase' table.

 

Scenario B: I know which user has the JIRA Administrators or JIRA System Administrators global permission, but I have forgotten the password

Here are two different ways you can solve this problem:

1. Send it via email

This is the recommended approach

If you have configured JIRA to send email, just click on the Forgot Password link on the login page, enter your username and click the Send it to me button. You will receive an email which will help you reset your password.

2. Set the password directly in the database

This is a last resort only.

You can also update the password hash stored for a user in your database. Run the following command to set the user called XXXX's password to the word sphere.

Then restart your JIRA instance.

Note that this will only work for users in the Internal directory, as otherwise authentication is done externally (eg in an LDAP server). You can find which directory a user belongs to by comparing the directory_id in cwd_user to those in cwd_directory.

  1. Apr 11, 2008

    The steps listed in this doc do not allow for changing the System Administrator password. I guess with the steps listed in the doc, you can bypass the authentication scheme but not the authorization. Instead, I resolved the issue by doing this:

    1. Edited the latest backup XML file to add a user for which I had the password to the System Administrator group.
    2. Uninstalled JIRA and deleted the JIRA folder
    3. Removed the JIRA windows registry entries
    4. Reinstalled JIRA and chose to import from the edited backup file.
    5. Logged in with the new System Admin user and changed the password for original System Admin
    6. Logged out and logged back in with the original System Admin and revoked the System Admin privileges from the other user.

    A bit more involved, but worked. Keep in mind to backup any changes you made to the jira-application.properties file as uninstalling JIRA will delete that file.

    1. Sep 25, 2008

      Thanks Huzaifa.

      I've updated the instructions so that they do explicitly cover the JIRA System Administrators global permission.

      1. May 03, 2011

        Anonymous

        thanks.

        but i want to ask something.

        while i m doing following instructions it says no database selected.

        can you help about this problem...

        1. Oct 25, 2011

          Anonymous

          Run this command first:

          USE db1;

          Where db1 is the name of your JIRA database.

           

          Kyle L.