com.atlassian.confluence.core.InsufficientPrivilegeException: User [wmehanna@horvath-partners.com] does not have the required privileges.

Atlassian JIRA | Razaq Omar [Atlassian] | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When an Administrator attempts to delete a user from Confluence user directory in a Confluence only instance, he gets the following stack trace: {noformat} Cause com.atlassian.confluence.core.InsufficientPrivilegeException: User [wmehanna@horvath-partners.com] does not have the required privileges. at com.atlassian.confluence.security.SpacePermissionCoordinator.removeAllPermissions(SpacePermissionCoordinator.java:72) Stack Trace:[hide] com.atlassian.confluence.core.InsufficientPrivilegeException: User [wmehanna@horvath-partners.com] does not have the required privileges. at com.atlassian.confluence.security.SpacePermissionCoordinator.removeAllPermissions(SpacePermissionCoordinator.java:72) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy37.removeAllPermissions(Unknown Source) {noformat} The problem is that the Administrator does not have permission on a personal space for that user. Adding the permission will solve the problem. As a user I would expect a more meaningful error message instead of a stack trace.

    Atlassian JIRA | 5 years ago | Razaq Omar [Atlassian]
    com.atlassian.confluence.core.InsufficientPrivilegeException: User [wmehanna@horvath-partners.com] does not have the required privileges.

    Root Cause Analysis

    1. com.atlassian.confluence.core.InsufficientPrivilegeException

      User [wmehanna@horvath-partners.com] does not have the required privileges.

      at com.atlassian.confluence.security.SpacePermissionCoordinator.removeAllPermissions()
    2. com.atlassian.confluence
      SpacePermissionCoordinator.removeAllPermissions
      1. com.atlassian.confluence.security.SpacePermissionCoordinator.removeAllPermissions(SpacePermissionCoordinator.java:72)
      1 frame