com.atlassian.crucible.spi.services.NotPermittedException: Error removing user from directory

Atlassian JIRA | Caterina Curti [Atlassian] | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    h3. Problem Definition For users managed in external directories (e.g. Ldap, Crowd, JIRA), FishEye shows a "Change Password", a "Rename" and a "Delete" button. !FE6571_UserOptions.png|width=500px! h4. Deleting users Since it is not possible to remove users managed in external directories, the following message is presented to the users in the FishEye user interface: {noformat} Error deleting user. Not allowed to delete user '<user_name>' from directory '<directory name>'. Please check the system logs for details. {noformat} The following can be found in the {{atlassian-fisheye-YYYY-MM-DD.log}} file: {noformat} 2016-06-16 15:36:25,257 WARN [qtp1680503330-2061 ] fisheye BaseAdminAction-addActionErrorAndLogWarning - Error deleting user. com.atlassian.crucible.spi.services.NotPermittedException: Error removing user from directory at com.cenqua.fisheye.user.DefaultUserManager.deleteUser(DefaultUserManager.java:1263) [fisheye.jar:?] at com.cenqua.fisheye.user.DefaultUserManager.deleteUserAndRemoveCommitterMappings(DefaultUserManager.java:1238) [fisheye.jar:?] ... Caused by: com.atlassian.crowd.exception.OperationNotPermittedException: com.atlassian.crowd.exception.ApplicationPermissionException: Not allowed to delete user '<user_name>' from directory '<directory name>'. at com.atlassian.crowd.embedded.core.CrowdServiceImpl.removeUser(CrowdServiceImpl.java:506) [embedded-crowd-core-2.8.5-m1.jar:?] ... Caused by: com.atlassian.crowd.exception.ApplicationPermissionException: Not allowed to delete user '<user_name>' from directory '<directory name>'. at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.removeUser(ApplicationServiceGeneric.java:817) [crowd-core-2.8.5-m1.jar:?] {noformat} h4. Changing passwords The following appears when changing passwords: {noformat} The user could not be updated. Not allowed to update user '<user_name>' in directory '<directory name>'. Please check the system logs for details. {noformat} h4. Renaming users The following appears when renaming users: {noformat} The user could not be updated. Cannot rename user '<user_name>' because directory '<directory name>' does not allow updates. Please check the system logs for details. {noformat} h3. Suggested Solution Remove the option to "Change Password", "Rename" and "Delete" a user from an external directory.

    Atlassian JIRA | 9 months ago | Caterina Curti [Atlassian]
    com.atlassian.crucible.spi.services.NotPermittedException: Error removing user from directory

    Root Cause Analysis

    1. com.atlassian.crucible.spi.services.NotPermittedException

      Error removing user from directory

      at com.cenqua.fisheye.user.DefaultUserManager.deleteUser()
    2. com.cenqua.fisheye
      DefaultUserManager.deleteUserAndRemoveCommitterMappings
      1. com.cenqua.fisheye.user.DefaultUserManager.deleteUser(DefaultUserManager.java:1263)[fisheye.jar:?]
      2. com.cenqua.fisheye.user.DefaultUserManager.deleteUserAndRemoveCommitterMappings(DefaultUserManager.java:1238)[fisheye.jar:?]
      2 frames