This page does not apply to JIRA OnDemand; you can't use JIRA OnDemand to manage your Stash users.
You can connect Stash to an existing Atlassian JIRA instance to delegate Stash user and group management, and authentication. Stash provides a "read-only" connection to JIRA for user management. This means that users and groups, fetched from JIRA, can only be modified or updated in that JIRA server, rather than in Stash.
Choose this option, as an alternative to Atlassian Crowd, for simple configurations with a limited number of users. Note that Stash can only connect to a JIRA server running JIRA 4.3 or later.
Connecting Stash and JIRA is a 3-step process:
1. Set up JIRA to allow connections from Stash
2. Set up Stash to connect to JIRA
3. Set up Stash users and groups in JIRA
Also on this page:
You need to be an administrator in JIRA and a system administrator in Stash to perform the following tasks.

1. Set up JIRA to allow connections from Stash
- Log in as a user with the 'JIRA Administrators' global permission.
- For JIRA 4.3.x, select Other Application from the 'Users, Groups & Roles' section of the 'Administration' menu.
For JIRA 4.4 or later, choose Administration > Users > JIRA User Server. - Click Add Application.
- Enter the application name (case-sensitive) and password that Stash will use when accessing JIRA.
- Enter the IP address of your Stash server. Valid values are:

- Click Save.
- Define the directory order, on the 'User Directories' screen, by clicking the blue up- and down-arrows next to each directory. The directory order has the following effects:
- The order of the directories is the order in which they will be searched for users and groups.
- Changes to users and groups will be made only in the first directory where the application has permission to make changes.

2. Set up Stash to connect to JIRA
- Log in to Stash as a user with 'Admin' permission.
- In the Stash administration area click User Directories (under 'Accounts').
- Click Add Directory and select Atlassian JIRA.
- Enter settings, as described below.
- Test and save the directory settings.
- Define the directory order, on the 'User Directories' screen, by clicking the arrows for each directory. The directory order has the following effects:
- The order of the directories is the order in which they will be searched for users and groups.
- Changes to users and groups will be made only in the first directory where the application has permission to make changes.

3. Set up Stash users and groups in JIRA
In order to use Stash, users must be a member of the Stash-users group or have Stash global permissions. Follow these steps to configure your Stash groups in JIRA:
- Add the
stash-users and stash-administrators groups in JIRA. - Add your own username as a member of both of the above groups.
- Choose one of the following methods to give your existing JIRA users access to Stash:
- Option 1: In JIRA, find the groups that the relevant users belong to. Add those groups as members of one or both of the above Stash groups.
- Option 2: Log in to Stash using your JIRA account and go to the administration area. Click Global permissions (under 'Accounts'). Assign the appropriate permissions to the relevant JIRA groups. See Global permissions.
Connecting Atlassian Stash to JIRA for user management is not sufficient, by itself, to allow your users to log in to Stash. You must also grant them access to Stash by using one of the above 2 options. We recommend that you use groups instead of individual accounts when granting permissions. However, be careful not to add more users to those groups that your Stash license allows. If the license limit is exceeded, your developers will not be able to push commits to repositories, and Stash will display a warning banner. See this FAQ. See also this information about deleting users and groups in Stash. |

Server settings


JIRA server permissions


Advanced settings
