Connecting Bitbucket Server to Jira for user management

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

(warning)  This page does not apply to Jira Software Cloud; you can't use Jira Software Cloud to manage your Bitbucket Server users.

You can connect Bitbucket Server to an existing Atlassian Jira Software instance to delegate Bitbucket Server user and group management, and authentication. Bitbucket Server provides a "read-only" connection to Jira Software for user management. This means that users and groups, fetched from Jira Software, can only be modified or updated in that Jira Software server, rather than in Bitbucket Server.

Choose this option, as an alternative to Atlassian Crowd, for simple configurations with a limited number of users. Note that Bitbucket Server can only connect to an instance running Jira Software 4.3 or later.

Connecting Bitbucket Server and Jira Software is a 3-step process:

1. Set up Jira Software to allow connections from Bitbucket Server

2. Set up Bitbucket Server to connect to Jira Software

3. Set up Bitbucket Server users and groups in Jira Software

このページで解説するその他の項目:

(warning) You need to be an administrator in Jira Software and a system administrator in Bitbucket Server to perform the following tasks.

Managing 500+ users across Atlassian products?
Find out how easy, scalable and effective it can be with Crowd!
See centralized user management.


1. Setup Jira Software to allow connections from Bitbucket Server

  1. Log in as a user with the 'Jira Software Administrators' global permission.
  2. For Jira 4.3.x, select Other Application from the 'Users, Groups & Roles' section of the 'Administration' menu.
    For later versions, choose Administration > Users > Jira User Server.
  3. [アプリケーションの追加] をクリックします。
  4. Enter the application name (case-sensitive) and password that Bitbucket Server will use when accessing Jira Software.
  5. Enter the IP address of your Bitbucket Server instance. Valid values are:
    • 完全な IP アドレス、例:192.168.10.12
    • ワイルドカードでの IP 範囲 (CIDR 表記を使用) 例: 192.168.10.1/16。詳細については、Wikipedia の CIDR 通知および RFC 4632 の概要を参照してください。
  6. 保存 をクリックします。
  7. 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:
    • ディレクトリの順序は、ユーザーおよびグループの検索順序です。
    • ユーザーおよびグループへの変更は、アプリケーションが変更権限を持つ最初のディレクトリに対してのみ行われます。

2. Setup Bitbucket Server to connect to Jira Software

  1. Log in to Bitbucket Server as a user with 'Admin' permission.
  2. In the Bitbucket Server administration area click User Directories (under 'Accounts').
  3. Click Add Directory and select Atlassian Jira.
  4. Enter settings, as described below.
  5. Test and save the directory settings.
  6. Define the directory order, on the 'User Directories' screen, by clicking the arrows for each directory. The directory order has the following effects:
    • ディレクトリの順序は、ユーザーおよびグループの検索順序です。
    • ユーザーおよびグループへの変更は、アプリケーションが変更権限を持つ最初のディレクトリに対してのみ行われます。

3. Set up Bitbucket Server users and groups in Jira Software

In order to use Bitbucket Server, users must be a member of the Bitbucket Server-users group or have Bitbucket Server global permissions. Follow these steps to configure your Bitbucket Server groups in Jira Software:

  1. Add the bitbucket-users and bitbucket-administrators groups in Jira Software.
  2. 上に記載した両方のグループのメンバーとして、自分のユーザー名を追加します。
  3. Choose one of the following methods to give your existing Jira Software users access to Bitbucket Server:
    • Option 1: In Jira Software, find the groups that the relevant users belong to. Add those groups as members of one or both of the above Bitbucket Server groups.
    • Option 2: Log in to Bitbucket Server using your Jira Software account and go to the administration area. Click Global permissions (under 'Accounts'). Assign the appropriate permissions to the relevant Jira Software groups. See Global permissions.

Connecting Atlassian Bitbucket Server to Jira Software for user management is not sufficient, by itself, to allow your users to log in to Bitbucket Server. You must also grant them access to Bitbucket Server 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 Bitbucket Server license allows. If the license limit is exceeded, your develope rs will not be able to push commits to repositories, and Bitbucket Server will display a warning banner. See this FAQ.

See also this  information about deleting users and groups  in Bitbucket Server.

サーバー設定

設定

説明

名前

ディレクトリ サーバーの一覧でこの Jira サーバーを識別するのに役立つ、わかりやすい名前にします。例:

  • Jira Software
  • My Company Jira

サーバー URL

Jira サーバーの Web アドレス。例:

  • http://www.example.com:8080
  • http://jira.example.com

アプリケーション名

ユーザー マネージャーとして機能する Jira サーバーにアクセスするときに、アプリケーションが使用する名前。アプリケーションはこの Jira サーバーで定義されている必要があります。これは、[管理] メニューの [ユーザー、グループおよび役割] セクションにある [その他のアプリケーション] オプションから行います。

アプリケーション パスワード

ユーザーマネージャーとして機能する Jira サーバーにアクセスするときに、アプリケーションが使用するパスワード。

Jira Software server permissions

設定

説明

読み取り専用

このディレクトリ内のユーザー、グループ、メンバーシップは、ユーザーマネージャーとして機能する Jira サーバーから取得されます。これらはその Jira サーバーからのみ変更できます。

高度な設定

設定

説明

Enable Nested Groups

入れ子グループのサポートを有効または無効にします。入れ子グループを有効にする前に、ユーザー マネージャーとして機能している Jira サーバーで入れ子グループが有効になっているかどうかを確認してください。入れ子グループが有効になっているときは、グループを別のグループのメンバーとして定義できます。グループを使用して権限を管理している場合、入れ子グループを作成して、1 つのグループからそのサブグループに権限を継承できます。

Enable Incremental SynchronizationEnable or disable incremental synchronization. Only changes since the last synchronization will be retrieved when synchronizing a directory.

Synchronization Interval (minutes)

同期とは、アプリケーションがユーザー データの内部ストアをディレクトリ サーバ上のデータで更新するプロセスです。アプリケーションは x 分ごとにディレクトリ サーバーにリクエストを送信します。x はここで指定する数値です。既定値は60分です。

最終更新日 2022 年 6 月 4 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.