Getting the "group does not exist" error when adding a Jira user to a group

お困りですか?

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

コミュニティに質問

プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

症状

JIRA is integrated with LDAP or Crowd. Upon adding a user to the group, JIRA is able to auto complete the group name in JIRA, but upon clicking 'Update', the following error appears.


There is not much indication of the error in the atlassian-jira.log.

診断

There is no problem with the synchronization between the user directories. The group is present in JIRA and the user can browse to the group in JIRA.

原因

There is a space in the group name in JIRA database. You can check this by executing the following query in the database : 

SELECT group_name FROM cwd_group WHERE group_name LIKE '<Your Group Name here>%';

ソリューション

データベースの変更を行う場合は必ず事前にバックアップを取得してください。可能な場合は、まずステージング サーバーで SQL コマンドの変更、挿入、更新、または削除を行うようにします。

  1. Execute the following query to update the group name in the database

    UPDATE cwd_group SET group_name = trim(both ' ' from group_name);
    UPDATE cwd_group SET lower_group_name = trim(both ' ' from lower_group_name);

    (info) The above queries are designed with respect to Postgres database. You might need to change the queries to suit your database.

  2. After this, restart JIRA.

(info) Please see our Troubleshooting LDAP User Management documentation for further assistance with diagnosing LDAP problems.

Last modified on Mar 13, 2025

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

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