-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
5.4
-
33
-
Severity 3 - Minor
-
2
-
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
The addMembership method returns the InsufficientPrivilegeException when the group does not exist, even when the user has sufficient permissions to add a user to a group. Additionally, if the "confluence-users" group does not exist or the "users" group in Confluence only OnDemand, this error can occur when trying to create a new user in Confluence.
The exception thrown suggests a permissions problem:
com.atlassian.confluence.core.InsufficientPrivilegeException: User [user.name] does not have the required privileges. at com.atlassian.confluence.user.DefaultUserAccessor.addMembership(DefaultUserAccessor.java:118)
However this exception is wrong/misleading, and does not reflect the true cause of failure, which is that the group does not exist.
On a side note, we have KB article on this, but I didn't find a bug filed for it:
http://confluence.atlassian.com/display/CONFKB/Unable+to+Create+New+User+Due+to+InsufficientPrivilegeException
- is duplicated by
-
CONFSERVER-26864 Deleting confluence-users group lead to problems
-
- Closed
-
- is related to
-
CONFSERVER-26864 Deleting confluence-users group lead to problems
-
- Closed
-
- relates to
-
CONFCLOUD-22778 DefaultUserAccessor.addMembership returns incorrect exception when group does not exist
-
- Closed
-
-
OBM-77 Failed to load
- mentioned in
-
Page No Confluence page found with the given URL.
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
The issue gets resolved when the 'users' group is recreated. However once the group is recreated, the default group for new users (via sign on or other means) becomes 'users' again.
There should be a mean to change the default user group for new users!
Note > This JIRA is for the exception and that is solved by recreating the group!