Unable to Create New User Due to InsufficientPrivilegeException
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
問題
Not able to create new user. The following appears in the stacktrace
:
com.atlassian.confluence.core.InsufficientPrivilegeException: User [user.name] does not have the required privileges.
at com.atlassian.confluence.user.DefaultUserAccessor.addMembership(DefaultUserAccessor.java:118)
原因
There are 2 known causes for this issue.
CAUSE 1
confluence-users
is a default group that every new user created will be added to. Somehow confluence-users
does not exist, hence the error is thrown.
This error is misleading, and we are investigating that issue here: CONF-22778 - Getting issue details... STATUS
CAUSE 2
In case the instance was migrated from Cloud, the default group is not Confluence-users, so even adding the Confluence-users group, the issue might persist.
In this case we must locate the default group in the database and change it to be Confluence-users.
ソリューション
CAUSE 1
Create the confluence-users
group manually through the UI (Confluence Admin >> Manage Groups).
CAUSE 2
ALWAYS PERFORM A FULL BACKUP OF THE DATABASE BEFORE MAKING ANY CHANGE TO IT.
1) Identify the current default group of Confluence:
select bandanavalue from bandana where bandanakey='atlassian.confluence.settings';
2) Locate the <defaultUsersGroup> tag and check which is the default group for Confluence.
3) Copy the entire result of the query above and replace the default users group value inside the tag with the "confluence-users" value
4) Run a update query with the entire result from above plus the modified group. (Note that if you do this update incorrectly and remove information from the results, Confluence will crash. Make sure to have a backup of Confluence)
5) Restart Confluence and you should now be able to create new users in the default group "confluence-users"